Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralDowloading a file from a web-site to client using c# Pin
simonzeng22-Sep-03 0:21
simonzeng22-Sep-03 0:21 
Questionhow to parse a dataset Pin
Birdy21-Sep-03 20:51
Birdy21-Sep-03 20:51 
AnswerRe: how to parse a dataset Pin
phimix22-Sep-03 6:13
phimix22-Sep-03 6:13 
GeneralMulti-line ListView control Pin
Member 46249021-Sep-03 20:10
Member 46249021-Sep-03 20:10 
GeneralKeyboard in C# Pin
deanoA21-Sep-03 17:37
deanoA21-Sep-03 17:37 
GeneralRe: Keyboard in C# Pin
Blake Coverett21-Sep-03 19:04
Blake Coverett21-Sep-03 19:04 
GeneralRe: Keyboard in C# Pin
Jim MacDonald22-Sep-03 6:10
Jim MacDonald22-Sep-03 6:10 
Generalsingle applications with multiple forms Pin
jerrycainjr21-Sep-03 14:56
jerrycainjr21-Sep-03 14:56 
I'm new to the C# language, and my Java experience is foiling me here.

My application doesn't really have one main form--it has two (or at least I feel they should be peers). Exactly one of these two windows is visible at any one time, but I'd like the one that IS visible to operate as if it's the main form, in that clicking on the close box of the Form subclass will kill the application. By default, the Form passed to Application.Run(), if closed, kills the entire application. Is there any way to change the main form so that the entire application DOESN'T die just because I call Close() against it. My intent is to create a second (completely different) form, call Show() against it, and then Close() the original one. I could just set it to be invisible, but I'd rather dispose of it entirely and not have to maintain a reference to the Form just so I can call Close() against it when time comes to really kill the application.

Any advice?

GeneralRe: single applications with multiple forms Pin
Blake Coverett21-Sep-03 17:27
Blake Coverett21-Sep-03 17:27 
GeneralRe: single applications with multiple forms Pin
Azel Low21-Sep-03 20:51
Azel Low21-Sep-03 20:51 
GeneralRe: single applications with multiple forms Pin
Blake Coverett21-Sep-03 22:25
Blake Coverett21-Sep-03 22:25 
GeneralRe: single applications with multiple forms Pin
Azel Low21-Sep-03 22:57
Azel Low21-Sep-03 22:57 
GeneralRe: single applications with multiple forms Pin
Blake Coverett21-Sep-03 23:42
Blake Coverett21-Sep-03 23:42 
GeneralEnum Question Pin
Wjousts21-Sep-03 11:23
Wjousts21-Sep-03 11:23 
GeneralRe: Enum Question Pin
J. Dunlap21-Sep-03 11:31
J. Dunlap21-Sep-03 11:31 
GeneralRe: Enum Question Pin
Wjousts21-Sep-03 11:44
Wjousts21-Sep-03 11:44 
GeneralCOM+ object pooling Pin
devvvy21-Sep-03 0:27
devvvy21-Sep-03 0:27 
GeneralRe: COM+ object pooling Pin
Daniel Turini22-Sep-03 0:36
Daniel Turini22-Sep-03 0:36 
GeneralRe: COM+ object pooling Pin
devvvy22-Sep-03 0:48
devvvy22-Sep-03 0:48 
GeneralCustom Namespaces Pin
maraymer20-Sep-03 23:42
maraymer20-Sep-03 23:42 
GeneralRe: Custom Namespaces Pin
Paul Watson21-Sep-03 10:43
sitebuilderPaul Watson21-Sep-03 10:43 
GeneralIcon for a control Pin
CGi0320-Sep-03 22:49
CGi0320-Sep-03 22:49 
GeneralRe: Icon for a control Pin
leppie20-Sep-03 23:12
leppie20-Sep-03 23:12 
GeneralBinding multiple file collections to a form control Pin
Member 52585820-Sep-03 19:01
Member 52585820-Sep-03 19:01 
GeneralRe: Binding multiple file collections to a form control Pin
Blake Coverett20-Sep-03 20:12
Blake Coverett20-Sep-03 20:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.