all groups > dotnet windows forms controls > april 2006
Filter by week: 1 2 3 4 5
RichTextBox flicker reduction methods?
Posted by Özden Irmak at 4/30/2006 11:58:07 PM
Hello,
One of the WindowsForms controls that I developed uses a richtextbox as an
editor in one of it's properties. As it does syntaxhighlighting, I get a lot
of flicker at this operation. Using LockWindowUpdate API helps a lot but at
the same time causes the desktop to flicker like a hell.... more >>
Large Icons in ListView and TreeView look really bad
Posted by google NO[at]SPAM easiesttoremember.com at 4/28/2006 3:48:42 PM
Using VS2005, .NET 2.0, making a WinForms app.
This seems pretty straight forward, but all of my icons in large icon
view in a listview (and a treeview) look horrible.
I've got an ImageList component with several imported icons... all
32x32 and 32bit color (from the icons collections in VS20... more >>
Any way to get managed object from unmanaged interface?
Posted by BrianGenisio NO[at]SPAM gmail.com at 4/28/2006 12:09:21 PM
Ok, consider the following EXAMPLE code:
WebBrowser browser = new WebBrowser();
HtmlDocument document = browser.Document;
IHTMLDocument2 docElement = document.DomDocument as IHTMLDocument2;
IHTMLElement newElement = docElement.createElement("BR");
// The next line is illegal. AppendChi... more >>
Need help with web browser control
Posted by carl_bevil NO[at]SPAM yahoo.com at 4/28/2006 10:13:19 AM
Hello all. I've created an HTML document on-the-fly using xsl. Now I
want to display it in a web browser control. The HTML is in a
MemoryStream.
This is what I tried to do:
------
xml = new XmlDocument();
xml.Load("test.xml");
xslTransform = new XslCompiledTransform();
xslTransform.... more >>
A timed MessageBox??
Posted by Dave at 4/26/2006 6:39:18 PM
I want to be able to display a quick little window indicating that the app
is doing something and the window will only be up for a few seconds. Like a
MessageBox but I don't want the user to have to do anything, the window will
auto close in a few seconds.
Is there anything built into the ... more >>
Write to Calling Assembly Resource File
Posted by jose cantu at 4/26/2006 6:27:47 PM
Hello!
I have developed a custom component to be used with window applications,
do you know if there is a way to write to the calling assembly resource
file? I want to persist global data in the windows application to be used
by this component at design & runtime, Or not necessarilly wit... more >>
Why do OwnerDraw MenuItems not render with ComboBox?
Posted by Dave Leach at 4/26/2006 4:05:01 PM
I am developing a windows forms application using VS 2003 in C#. The
controls in this application each have a ContextMenu. I have created a
derived version of the MenuItem class to allow customizing the appearance of
the individual menu items in the context menus. The main objective in usin... more >>
How to know when user resizes ListView ColumnHeaders?
Posted by Dave Leach at 4/26/2006 1:29:02 PM
I am developing a windows form application using VS 2003 in C#. I have
created a form that contains a ListView control. The ListView control View
property is set to Details.
I need to know when the user resizes the ColumnHeaders to perform some
formatting of item text. I could not find ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Interesting flickering problem if application's user control is invalidated by external application (e.g. Notepad)
Posted by sasifiqbal NO[at]SPAM gmail.com at 4/26/2006 7:50:54 AM
Hi,
One of my developers are facing an interesting problem regarding
UserControl invalidation.
The problem is:
We have two forms in our application. Form A does nothing except
loading of Form B and Form B contains an array of UserButton kind of
contol (we have created our own buttons deriv... more >>
Sorting Back the DataGridView after Refreshing
Posted by wrytat at 4/25/2006 5:24:02 PM
Hi, I have a datagridview and a Refresh button on my window form. When the
user click the Refresh button, the datagridview will be loaded with the
latest data from the database. After refreshing, I'd like to go back to the
sorting order that the user last sorted. For example, before he clicked... more >>
RichTextBox Remove Underlinging
Posted by Josh at 4/25/2006 3:39:48 PM
Anyone any idea, how to remove all of the underlining from a RichTextBox
without upseting any of the other formatting?
Thanks in Advance.
--
#####-----#####-----#####
POV Tips and Hints at ...
http://povman.blogspot.com/
... more >>
DataGridView change row color
Posted by Tony B at 4/25/2006 1:28:00 PM
Hi,
I posted this message last week to the dotnet.framework.windowsforms
newsgroup and I didn't get any answers, so my apologies if this post
looks familiar.
I'm trying to change the background color of a row in a DataGridView
based upon a value in one of the row columns
For i As Intege... more >>
Refresh DataGridView with Latest Data
Posted by wrytat at 4/25/2006 4:11:02 AM
I have 2 datagridviews on my windows form both bound with data that are
related with 2 tables (1 parent 1 child). I have a button to add a new child
to the parent. When I press the button, it will add a row into the respective
table stored in my database. However, this new row will not be refl... more >>
How to set title text -- datagridview control
Posted by sajin at 4/24/2006 11:45:20 PM
Hi all,
I need to place a title for my datagridview control , i kept the
property like Rowheadersvisible and columnsheadersvisible property
false .
I want to keep a header (Title) for my datagridview (vb .net 2005)
Regards
Sajin
... more >>
how to set form position fixed
Posted by sajin at 4/24/2006 7:16:21 AM
Hi All,
I have a windows form (vb .net 2005) , after loading the form i can
move the form here and there in the screen , i want that to be not done
, meaaning that the customer could not move the form even if they move
it should not go
Thanks
Sajin
... more >>
How to track current index in the textbox string
Posted by Fiaz Ali Saleemi at 4/24/2006 6:51:24 AM
Hi All
I have developed a custom user control for onscreen Keyboard functionality.
When user clicks any button then it should act accordingly and add the
appropriate character into the string or do the appropriate action(Delete,
Backspace etc).
Now if user sets cursor in the middle of the str... more >>
Confused about reporting options
Posted by Rene at 4/23/2006 8:46:50 PM
I noticed that there is a control called "ReportViewer"
(Microsoft.Reporting.WinForms.ReportViewer) and other report related
controls under the "Crystal Reports" section called "CrystalReportViewer"
and "ReportDocument".
Could someone tell me if these two are related? Are these controls bot... more >>
ImageButton in VS2005
Posted by Jatin at 4/23/2006 6:04:49 PM
I am searching for ImageButton control in the VS2005 toolbox, but can't
find it. Anyone has any idea where it islisted? I checked for it by
right-clicking the toolox and going into Choose Items.. dialog box. It
is there and selected, but somehow it is not listed in the toolbox. Any
ideas? An... more >>
Tab Control Customization
Posted by Martin Rais at 4/21/2006 1:54:33 PM
Hi! I would like to draw a Tab Control myself (instead of the recatangle,
for example, I would like to draw a rounded Rect). Is there any way to do
this or should I create my own Tab Control?
Thanks.
Martin
... more >>
DataGridView control
Posted by sajin at 4/21/2006 12:54:06 AM
Hi all,
I am new to programmimg with windows forms(visual studio 2005 , VB
..Net) ,
I have a form in which i drag and drop the DataGridview control from
the toolBox , i want to give the background image to my DataGridview ,
but i can do this for the Form background by setting the prope... more >>
Getting an accurate CheckedItems from CheckedListBox.ItemCheck eve
Posted by Bill Sempf at 4/20/2006 12:41:02 PM
I am trying to do something ever so simple.
What I want to do is use one checkboxlist to filter another. I have a list
of areas in one checkboxlist, and a list of stores in the other. When you
check on an area, I want to filter the stores.
However, when you consume the ItemChecked event,... more >>
Howto Get Image of any control
Posted by Michael S. Scherotter at 4/20/2006 10:49:54 AM
Is there any generic code to get an image of the contents of any
System.Windows.Forms.Control on a form?
Michael
... more >>
DataGridView Custom Control Constructor
Posted by Richard MSL at 4/19/2006 12:51:02 PM
I have a DataGridView that will contain a custom control that I have written
(a MinoBox). I have made a MinoEditingControl that inherits from MinoBox and
implements the IDataGridViewEditingControl interface. This works fine, and
creates the MinoBox control with the default constructor.
But ... more >>
Resize flickering with transparent control, help double buffering?
Posted by Kristopher Wragg at 4/19/2006 8:19:42 AM
Hi,
I'm creating some controls that basically draw shapes with/without text
inside/outside etc, pretty customizeable shapes including square,
circle, star...
I'm having a problem when their anchors are set so they resize with the
parent control, they're flickering like mad and I cant seem t... more >>
is there any limit to how long of a string SqlDataReader.GetString() can return?
Posted by Daniel at 4/18/2006 8:41:38 PM
is there any limit to how long of a string SqlDataReader.GetString() can
return?
... more >>
ReportViewer
Posted by wrytat at 4/18/2006 8:25:01 PM
I'm using Visual Studio 2005 to do some programming, and is currently
exploring the ReportViewer control. I'd like to ask the method to parse a
parameter from the form to appear on the report. And also, is it possible to
format the report and link the data to the report with codes?... more >>
.Net 2.0 WebBrowser control
Posted by daniel at 4/18/2006 4:58:02 PM
Hi,
I am using a WebBrowser control in my win forms application and would like
to supress the behaviour of the Open/Save dialog box that appears when I
attempt to navigate to a document, for example a Microsoft office word
document. Rather then the open save dialog box to open i would like t... more >>
Get "parent" control from ContextMenu
Posted by Michael Fällgreen at 4/18/2006 2:52:36 PM
Hi
I have a form with 10 textbox controls. They all have a contextmenu to
replace the standard copy/paste rightclick menu, and that works ok - but how
to I get a ref to the textbox from wich the contextmenu was activated and a
menuitem clicked?
Thanks
... more >>
Underlining TreeNode makes TreeView flicker
Posted by Fran Garcia at 4/18/2006 1:03:13 PM
Hi,
I've implemented a TreeView that underlines the node under mouse location
(like Windows Explorer does), but I have a flicker problem, because the
entire TreeView is repainted whenever I change the NodeFont property of any
of it's child nodes.
Whenever the mouse moves over a tree node... more >>
hosting winforms control in Internet explorer
Posted by kosibaster NO[at]SPAM gmail.com at 4/18/2006 2:25:46 AM
Hi everyone
I have a problem with hosting windowsforms controls on IE web page, the
control is displayed properly, but i cannot get the "Ctrl+C" message. I
can get the "Ctrl" key or "C" key message, but if I press "Ctrl+C", it
can only get "C" message, but strangely the "Ctrl+V" works OK.
If ... more >>
automated listcontrol scrolling
Posted by Thomas Wegener at 4/18/2006 12:00:00 AM
I fill the list control with hundred of lines and it takes some times. The
user should see the last line in the listbox.
In C++ I force the list scrolling to the last line via:
CListBox listBox;
listBox.SetCaretIndex(listBox.GetCount()-1);
listBox.UpdateWindow();
Is there are any si... more >>
Round PictureBox
Posted by Mark Denardo at 4/15/2006 10:05:53 AM
Anyone know how to create a round PictureBox?
Basically I'm trying to create a control that when an image in loaded into
it, only the round circle part shows the image and everything outside of it
is transparent to the rest on the control.
... more >>
2 datagrid view questions
Posted by The angry snapping Goose at 4/15/2006 10:02:41 AM
Does anyone know where I can look to find out the following
1. How to get rid of the first column in the datagrid view that has the ">"
in it.
2. If #1 is not doable, how to unselect all items in the datagridview. I
had to add tab order within the datagrid view. When I tab out of the "l... more >>
ControlStyles.OptimizedDoubleBuffer & .NET 2.0 ListView
Posted by bryan.l.porter NO[at]SPAM gmail.com at 4/15/2006 6:53:09 AM
Salutations,
..NET 2.0 ListView suffers from severe flicker. As a test, I wrote two
apps, one for .NET 1.1 and one for .NET 2.0. Both apps added exactly 50
items to a 4 column ListView in Details mode. Then, run each app and
start resizing things - the .NET 1.1 example has no noticeable flicke... more >>
ListView: Virtual & OwnerDrawn flicker problem
Posted by Patrick Wolf at 4/14/2006 11:02:04 PM
Hi,
I got a challenge with the ListView.
When using the Virtual Mode and OwnerDrawn the images flicker very strongly.
When using the normal mode and OwnerDrawn there is no flicker.
I would need to use the Virtual Mode though :).
Could anybody help (please use the code below as an example)... more >>
Clone a control with its event handlers
Posted by mikrogen at 4/14/2006 2:46:48 PM
Hi,
I know how to clone control in runtime with PropertyDescriptors. But my
question is, how can I clone control event handlers? Ie. I have an instance
of button with OnClick event handler, I want to clone it and the cloned
button should have also the same OnClick event handler.
Thank ... more >>
Check Control.Visible property value
Posted by news.microsoft.com at 4/13/2006 12:01:24 PM
Hi,
How can I check if my control is visible at run-time BEFORE the form is
fully loaded?
In design mode you can create a window and put a Button inside, set the
property Visible to true.
But at run-time at least the Button is fully visible this property will
return false.
... more >>
Update order of list items in Datagrid bound to an IBindingList
Posted by Tasha at 4/13/2006 3:36:09 AM
For a few days now I have tried to do the following:
I have a custom collection that implements the IBindingList interface.
This collection is bound to a DataGrid.
The collection items have a property "Position". When I change the
position property, I want the collection to rearrange the item. T... more >>
what permissions does a windows service need to execute another process? System.Diagnostics.Process process = System.Diagnostics.Process.Start(info);
Posted by Daniel at 4/12/2006 3:46:55 PM
what permissions does a windows service need to execute another process?
System.Diagnostics.Process process = System.Diagnostics.Process.Start(info);
just local administrator? any specific permitions?
... more >>
System.Diagnostics.Process.Start fails on windows server 2003
Posted by Daniel at 4/12/2006 12:32:53 PM
System.Diagnostics.Process.Start fails on windows server 2003
the process returns process.ExitCode == 0 but executing any process with
System.Diagnostics.Process.Start on windows xp works fine.
anything to do different for windows server 2003? some special permission
for the process that ex... more >>
Validation events not firing
Posted by Bob Heitzman at 4/12/2006 9:10:28 AM
VB2005 - standard textbox, DataViewGrid, Windows Forms
Sorry if this is answered already - my serach terms didn't turn up
anything.
Setup: toolbar with button, unbound textboxes
Change some text and tab out of textbox and validation events fire.
Change some text and click on button on... more >>
TreeView drag-and-drop: preventing parent node from being moved to one of it's children?
Posted by Dave at 4/11/2006 9:44:08 PM
I have drag and drop basically working but I need to prevent the situation
where the user drags a node into a node under that node because that it not
a valid case (the whole subtree disappears).
Is there any easy way to find out if the destination node is a descendent of
the node being mov... more >>
vs2005:Inherited Controls cause Loaderexception when used
Posted by Jav at 4/11/2006 8:06:01 PM
System with Intel 2.0 GHz Dual Core, 2GB RAM
..Net Framework 1.1 and 2.0
VS2003 and VS2005
I converted a large project from VS2003 to VS2005. After fixing all errors
and most warnings, I can run the program with no significant problem. But
when I try opening any Form or UserControl in th... more >>
[C#] RichTextBox Autoscroll after style change
Posted by Leon Friesema at 4/11/2006 5:48:44 PM
Hi,
I'm working on a RichTextBox with some "in-program" style-features
(e.g. *no way* becomes bold : like MS Word does). Got everything
working fine, flickerfree and reasonable fast, but in order to set the
style of some part of the text I use the "Selection" method (in the
case of *text* the... more >>
ToolBox confusion
Posted by vul at 4/10/2006 4:56:35 PM
In VB6 ToolBox displays all controls you selected. If you are trying to
remove any of them used in your application, it doesn't allow you to do
that.
ToolBox in VS2005 works different way. It looks like even if you placed one
of the controls on the form, you can remove that control from the t... more >>
Book Recommendation
Posted by c_shah at 4/10/2006 1:29:40 PM
I am seasoned Web\SQL Server developer and most of my experience is in
ASP.net
Any good referece book for windows forms controls and data binding to
those controls? (controls like tree view, status bar panels etc..)
I am thinking of buying but if any one have any suggestions
Windows Forms... more >>
how do can I find when a control is loaded fully?
Posted by Kristopher Wragg at 4/10/2006 9:30:39 AM
Is there any way to find out when a control is finished loading and its
properties all set?
I have controls that interact with another class and need to get some
details about their initial state with regards to the database... but
I'm getting exceptions about the Windows Handle not being crea... more >>
Resizing an embedded DLL control from HTML/Javascript
Posted by ChrisDude at 4/10/2006 1:22:10 AM
Hi All,
Is it possible to resize an embedded control in a HTML page, whenever
the page is resized.
Can anyone point me in the right direction.
Thanks in advance,
Chris
... more >>
DataGridView Colored Rows
Posted by wrytat at 4/10/2006 12:16:01 AM
I have a datagridview on my windows form and i want it to be such that when
the value of a column is 'Y', the row will be in blue color. Otherwise, all
other rows will be in white. Is that possible? How can I do that?... more >>
Transparent Picturebox
Posted by grubertm NO[at]SPAM gmail.com at 4/9/2006 5:57:24 PM
Despite searching for the past 2 days I have not found any solution to
what should be a simple task:
Create a PictureBox which renders its Image with an alpha value so that
other control underneath it can show through, similar to what you get
by setting a Forms opacity.
The usual recommendati... more >>
|