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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
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 >>
|