Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > dotnet windows forms > january 2004 > threads for friday january 2

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Closing Event
Posted by Clyde at 1/2/2004 9:48:37 PM
Windows Forms provides a Closing event that the form being closed can cancel. It seems clear for modal dialogs but not for modeless forms. The method Close() on the form causes the event to occur but doesn't return a value. How can the element doing the closing know the form didn't want t...more >>


Maximum Picture Box width
Posted by Kapil Raikar at 1/2/2004 9:43:21 PM
Hi, ..Net documentation says that the datatype of picture box width and height are Int32 then why can't we assign Int32.MaxValue (2,147,483,647) to width and height of the picture box. Similarly, When we create a bitmap having the following dimension Bitmap bmp = new Bitmap(Int32.MaxV...more >>

Datagrid
Posted by Suresh Parmar at 1/2/2004 8:24:40 PM
I am developing a UI that will be mainly keyboard driven. I have a datagrid that needs to return a value when the user hits the 'Return' button. I have tried the keypress, keydown, and keyup events at the datagrid as well as at form level, but have not succeeded in being able to return t...more >>

How to add ListBox or TextBox to ToolBar
Posted by wg at 1/2/2004 6:21:05 PM
How to add ListBox or TextBox to ToolBar...more >>

Closing modeless form causes parent form to disappear (or lose focus).
Posted by swey1 NO[at]SPAM hotmail.com at 1/2/2004 5:06:26 PM
Jazzyfoot (jazzyfoot@hotmail.com) posted this message at 2003-02-11 15:40:00 PST: "The problem occurs when my application creates multiple modeless forms. What happens is that when these forms are closed focus changes from the parent application to the last application which had focus (e.g. Vis...more >>

SHIFT to Open
Posted by Alb at 1/2/2004 4:53:21 PM
Hi, does anyone know how to intercept the SHIFT key while opening a vb.net or C# windowsforms application? I would like to do something like MS Access when excluding autoexec macros. thanks Alberto ...more >>

freeze when launching form from c# dll
Posted by John Dolinka at 1/2/2004 4:32:48 PM
When I launch a form from a c# dll (part of the c# project), after I do a show the launched form freezes. If the dll host launches the same form from an exposed public method in the c# dll project then no problems. Is there anyway I can launch the windows form that is part of my c# project with...more >>

Programmatically setting BackColor
Posted by Joe Thompson at 1/2/2004 4:19:54 PM
Hi, I am using managed C++ and want to programmatically set the forms BackColor from either four values (A,R,G, B) or one value ARGB. I tried putting this is the form's load method: Color clr; clr.FromArgb(ARGB); this->BackColor = clr; It compiles and runs but the color doesn't change....more >>



add item to listbox
Posted by Ignacio Martínez at 1/2/2004 4:09:20 PM
Hey group! first of all, happy new year to everyone. I have a small problem that I haven't worked out yet and it's driving me a little crazy. I have two forms with a listbox control on each one. the child form passes the selecteditem to the parent form. but I want to pass the whole item (V...more >>

Another PropertyGrid Question
Posted by JezB at 1/2/2004 3:01:52 PM
The grid happily shows any public properties that has the Browsable attribute set, but if I inherit public properties from some base class and base my property grid on the new class, the property grid shows base class properties but displays "Object reference not set to an instance of an object"...more >>

Newbie: How to do New Record Question
Posted by Bob McCormick at 1/2/2004 2:56:10 PM
Hi All, New here to .NET and am having difficulty conceptually understanding how one would use Datasets and have an empty form open up ready for data input. It seems like all of the examples I've found are related to showing how to display existing data in a grid (lots of examples here), or set ...more >>

position (and resize) 2 labels dynamically within a container (xpander control)
Posted by Bonna at 1/2/2004 2:31:12 PM
Hi, I have 2 label within a xpander control. (or another container for that matter) The contents of the labels are set dynamically (label.Text = ...). I want to use a fixed width (the width of the container), but the label has to span its text across multiple lines. (so the height is variab...more >>

mdi child minimize
Posted by jim at 1/2/2004 1:47:29 PM
hi, i'm working with an mdi application in which i have several mdi children open. as i minimize these children they are visible in the lower left hand corner of the screen on top of the mdi parent form. however, each of these mdi children have been minimized to the point that they're about th...more >>

RichTextBox SelectionTab problem
Posted by Kaki Cheung at 1/2/2004 12:24:09 PM
Hi all. I've seen examples on how to measure average character width with StringFormat.GenericTypographic and how to set the SelectionTab array, but the problem is, even with fixed size font (Courier New in my case), the tab width is off by 1 or 2 pixels, depending on font size. Seems to me i...more >>

PropertyGrid question
Posted by JezB at 1/2/2004 9:45:04 AM
If I base a PropertyGrid control on a class, I have a certain amount of control on which public properties exposed by the class appear in the control via the [Browsable(true)] attribute of the property. I need to have a finer degree of control since (based upon a number of factors) I may either ...more >>

Hide Caret in richTextBox Control
Posted by Kevin at 1/2/2004 9:10:16 AM
Greetings, How can I disable the blinking cursor (called a caret?) in a richTextBox control in C++ .NET? I found a command for MFC called HideCaret, but I'd like to do this in Windows Forms. Any help would be greatly appreciated! Thanks, Kevin ...more >>

Repeated Adding,Removing control from form
Posted by Brad Huff at 1/2/2004 7:16:52 AM
I have included a snippet below which illustrates the problem with adding and removing controls in a repeating fashion. At least on my computer (Windows XP) the program crashes after several thousand iterations. Is there a way to correct this simple program so it doesn't crash or is ther...more >>

How to add ListBox or TextBox to MenuBar?
Posted by wg at 1/2/2004 7:01:12 AM
How to add ListBox or TextBox to MenuBar?...more >>


DevelopmentNow Blog