Click here to Skip to main content
15,923,083 members
Home / Discussions / C#
   

C#

 
GeneralRe: Print with landscap Pin
Gareth H12-May-08 9:05
Gareth H12-May-08 9:05 
GeneralRe: Print with landscap Pin
cocoonwls12-May-08 15:19
cocoonwls12-May-08 15:19 
QuestionPassing Variable to Parent form Pin
benjamin yap11-May-08 23:14
benjamin yap11-May-08 23:14 
AnswerRe: Passing Variable to Parent form Pin
Christian Graus11-May-08 23:17
protectorChristian Graus11-May-08 23:17 
GeneralRe: Passing Variable to Parent form Pin
benjamin yap11-May-08 23:33
benjamin yap11-May-08 23:33 
GeneralRe: Passing Variable to Parent form Pin
Christian Graus11-May-08 23:54
protectorChristian Graus11-May-08 23:54 
GeneralRe: Passing Variable to Parent form Pin
benjamin yap12-May-08 0:02
benjamin yap12-May-08 0:02 
GeneralRe: Passing Variable to Parent form Pin
Christian Graus12-May-08 0:04
protectorChristian Graus12-May-08 0:04 
If you call ShowDialog, it's modal. IF you call Show, so the parent form stays active, it's modeless, and that's why you need a delegate. If your main form code stops when you show the child, your main form code knows when the otehr form ends it's life, so you can examine it's state. If you called Show, you don't know when the child form has something to tell you, a delegate lets the form tell you.

If you call Hide, then you're calling Show, I guess. Otherwise, your modal form would freeze your application.

A login form has to be modal, or there's no point. A properties form, would be modeless, you change properties and see the results in the main form. Just some examples.

Christian Graus

Please read this if you don't understand the answer I've given you

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

GeneralRe: Passing Variable to Parent form Pin
benjamin yap12-May-08 0:10
benjamin yap12-May-08 0:10 
GeneralRe: Passing Variable to Parent form Pin
natsuyaki12-May-08 0:13
natsuyaki12-May-08 0:13 
GeneralRe: Passing Variable to Parent form Pin
Christian Graus12-May-08 0:14
protectorChristian Graus12-May-08 0:14 
GeneralRe: Passing Variable to Parent form Pin
Christian Graus12-May-08 0:13
protectorChristian Graus12-May-08 0:13 
GeneralRe: Passing Variable to Parent form Pin
benjamin yap12-May-08 0:25
benjamin yap12-May-08 0:25 
GeneralRe: Passing Variable to Parent form Pin
Christian Graus12-May-08 0:44
protectorChristian Graus12-May-08 0:44 
GeneralRe: Passing Variable to Parent form Pin
natsuyaki12-May-08 0:51
natsuyaki12-May-08 0:51 
GeneralRe: Passing Variable to Parent form Pin
benjamin yap12-May-08 1:57
benjamin yap12-May-08 1:57 
GeneralRe: Passing Variable to Parent form Pin
natsuyaki12-May-08 2:09
natsuyaki12-May-08 2:09 
GeneralRe: Passing Variable to Parent form Pin
benjamin yap12-May-08 3:02
benjamin yap12-May-08 3:02 
GeneralRe: Passing Variable to Parent form [modified] Pin
natsuyaki12-May-08 3:54
natsuyaki12-May-08 3:54 
AnswerRe: Passing Variable to Parent form Pin
natsuyaki11-May-08 23:18
natsuyaki11-May-08 23:18 
GeneralRe: Passing Variable to Parent form Pin
Christian Graus11-May-08 23:20
protectorChristian Graus11-May-08 23:20 
GeneralRe: Passing Variable to Parent form Pin
natsuyaki11-May-08 23:27
natsuyaki11-May-08 23:27 
GeneralRe: Passing Variable to Parent form Pin
Christian Graus11-May-08 23:46
protectorChristian Graus11-May-08 23:46 
GeneralRe: Passing Variable to Parent form Pin
Colin Angus Mackay12-May-08 0:27
Colin Angus Mackay12-May-08 0:27 
GeneralRe: Passing Variable to Parent form Pin
natsuyaki11-May-08 23:35
natsuyaki11-May-08 23:35 

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.