all groups > dotnet windows forms > november 2003 > threads for monday november 24
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
Scope of form variables...
Posted by craig at 11/24/2003 10:18:48 PM
This may sound like a dumb question, but I am hoping someone might comment
on it....
Consider the following method (assuming that Form1 is a class derived from
System.Windows.Forms.Form) :
private void MyMethod()
{
int i = 1;
Form1 myForm = new Form1();
myForm.Show();
}
... more >>
OnPaint when using Offscreen bitmap
Posted by mBird at 11/24/2003 8:09:34 PM
I am using an offscreen bitmap and I have scrolling.
For now I DrawImage the entire offscreen bitmap -- but that is slow.
Could anyone please tell me how to only DrawImage the portion I need so it
will go faster.
Thank you!
For now I do:
protected override void OnPaint(PaintEventArgs e)
{
... more >>
Problems with MessageBox.Show
Posted by Kevin Westhead at 11/24/2003 7:40:12 PM
I'm experiencing a problem where I have a non-modal toolwindow that contains
a control derived from System.Windows.Forms.ComboBox displayed in an MDI
application. Whenever a .NET message box is displayed in the application the
derived combo boxes on the toolwindow appear to lose their base contro... more >>
free control alterative to treeview
Posted by klumsy NO[at]SPAM xtra.co.nz at 11/24/2003 7:18:11 PM
does anybody of the existance of a free control that is a good
alternative to the treeview
i basically want some flexibility in the UI and ability to do
multiselect etc etc.
in delphi some guy had made a free virtual tree view that just rocked
and i'm looking to see if some people have steppe... more >>
Maximum height of windows form
Posted by Aniket Sule at 11/24/2003 5:35:26 PM
Hi,
I am trying to set the height of a form in the VS .net IDE, and somehow seem
unable to set the height beyond 780. I have set the autoscale and autoscroll
properties to true, and the Miniumn size and maximum size are set to 0,0
each. I was under the impression that with these settings I could... more >>
Form Scrolling
Posted by mBird at 11/24/2003 5:15:22 PM
I have scrolling in my app.
When I click the arrows of the scroll bar or click inside the scroll bar the
app scrolls -- but when I drag the scroll box (that part in the middle) the
app does not scroll until after I release the mouse button. I'd like it to
scroll as I drag that scroll box. I fig... more >>
Serialiazing a form
Posted by NotYetaNurd at 11/24/2003 4:40:45 PM
Hi,
i want to persist a few properties of a form ...how do i do it ? any
leads is greatly appriciated
regards,
....
... more >>
Share a connection
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 11/24/2003 3:01:59 PM
Hi
How do I share a connection between two forms???
Regards... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Selecting Listview Item by Text
Posted by Todd Plambeck at 11/24/2003 3:00:42 PM
I have a listview with items Apple, Pear, Banana. How can I
programmatically select Pear if I don't know the index?
Thanks,
Todd
... more >>
Form Start Position question
Posted by craig at 11/24/2003 1:06:04 PM
When I set the StartPosition on my main form to CenterScreen, the form never
starts at center screen, but offset toward the lower right corner. On my
modal login form, however, the property seems to work just fine.
Am I overlooking something??
Thanks!
... more >>
PropertyGrid customization
Posted by Peter at 11/24/2003 10:45:54 AM
Hi,
I'm in the process of customizing the PropertyGrid for an
application. I've written several TypeConverters and a
few editors to display and process data within the grid.
What I haven't been able to do yet is have the editor
control receive the mouse input from another window.
Fo... more >>
Preventing "ding!" on Esc or Enter in a textbox
Posted by Nic L at 11/24/2003 10:18:25 AM
Anybody know how to prevent the ding sound from happening when the escape or
enter key is entered into a textbox? I need to catch the enter and escape
keys for processing.
I've the following event handler for on the Keydown event of the text box,
but I'm still getting the ding sound.
priva... more >>
OLE in Windows Form
Posted by mreid NO[at]SPAM exhibitworks.com at 11/24/2003 9:44:53 AM
How can insert an OLE object in a Windows Form?
If visual basic 6.0 you could use the OLE Control to a complish the same
task
... more >>
Call another form
Posted by gserna78 NO[at]SPAM yahoo.com.mx at 11/24/2003 8:28:45 AM
Hi
I created two forms in the same proyect and I want to call
one form from another one but I couldn't find the Show
method. I'm working with C#.
In Visual Basic 6 you can tell the proyect which form use
first.
Regards
... more >>
Changing TextBox left margin
Posted by Celio C Jr at 11/24/2003 2:49:29 AM
Hello,
How can I change the TextBox's left margin so I can create
an inherited class from TextBox and paint something on its
left side?
Thank you.
Celio C Jr... more >>
IDisposable, using(), RAII and structs [Discussion]
Posted by codymanix at 11/24/2003 1:15:04 AM
Last night I had several thought about RAII and want to discuss a bit.
Why doesn't CSharp support destructors in structs? Wouldn't that make RAII
possible like in C++? When the struct goes out of scope, the dtor could be
immediately be called (no GC needed).
For that, you don't have to decla... more >>
How can I capture rows changing in datagrid (winforms) when arrow up/down is pressed?
Posted by newsgroper NO[at]SPAM yahoo.com at 11/24/2003 12:24:35 AM
I update a form with labels and text boxes when the user clicks on the
rowheader of my winforms datagrid. I notice that the user can move to
a new row using the arrow up/down keys. I currently update the form
using the click event of the datagrid. How can I update the form when
the user moves... more >>
|