Click here to Skip to main content
16,007,111 members
Home / Discussions / C#
   

C#

 
Generalwaitforexit doesn't wait Pin
thepersonof28-Jun-05 7:58
thepersonof28-Jun-05 7:58 
GeneralRe: waitforexit doesn't wait Pin
Nick Parker28-Jun-05 9:51
protectorNick Parker28-Jun-05 9:51 
GeneralRe: waitforexit doesn't wait Pin
thepersonof28-Jun-05 10:04
thepersonof28-Jun-05 10:04 
GeneralRe: waitforexit doesn't wait Pin
Dave Kreskowiak28-Jun-05 15:41
mveDave Kreskowiak28-Jun-05 15:41 
GeneralRe: waitforexit doesn't wait Pin
thepersonof29-Jun-05 8:06
thepersonof29-Jun-05 8:06 
GeneralEasy Forms Question Pin
mikemmmmmm28-Jun-05 6:39
mikemmmmmm28-Jun-05 6:39 
GeneralRe: Easy Forms Question Pin
Anonymous28-Jun-05 6:54
Anonymous28-Jun-05 6:54 
GeneralRe: Easy Forms Question Pin
Matt Gerrans28-Jun-05 9:07
Matt Gerrans28-Jun-05 9:07 
This event stuff may be overkill unless you want the first form to display live updates of what is going on on the second form. Also, it would be a bit of a mess to onroll all the changes if the user ended up clicking "cancel" after a lot of changes.

More likely, you just want the same kind of behavior you get with the OpenFileDialog, SaveFileDialog, FontDialog, etc. In that case, you just add some public properties to your second form that can be initialized and retrieved from the first. You'll probably care about whether the user clicked "ok" or "cancel" on the second form, so you'll probably want to use the DialogResult stuff. (unless your second form has some other idiom, like those dialogs that only have a "close" button).

Hopefully this is enough info to get you started. This question is asked so often, I was thinking of writing a little article to describe a couple ways to do it simply, as well as the more advanced event method mentioned above. Or probably there is already an introductory forms article that covers it...

Matt Gerrans
GeneralRe: Easy Forms Question Pin
mikemmmmmm28-Jun-05 11:41
mikemmmmmm28-Jun-05 11:41 
GeneralRe: Easy Forms Question Pin
Matt Gerrans28-Jun-05 14:20
Matt Gerrans28-Jun-05 14:20 
GeneralRe: Easy Forms Question Pin
Anonymous28-Jun-05 20:12
Anonymous28-Jun-05 20:12 
GeneralRe: Easy Forms Question Pin
Matt Gerrans29-Jun-05 5:30
Matt Gerrans29-Jun-05 5:30 
GeneralSetup File Pin
Yigal Agam28-Jun-05 6:30
Yigal Agam28-Jun-05 6:30 
GeneralRe: Setup File Pin
Nick Parker28-Jun-05 9:54
protectorNick Parker28-Jun-05 9:54 
GeneralRe: Setup File Pin
Yigal Agam28-Jun-05 10:02
Yigal Agam28-Jun-05 10:02 
GeneralContext Menu Pin
Yigal Agam28-Jun-05 6:28
Yigal Agam28-Jun-05 6:28 
GeneralAnother interesting fact Pin
Yigal Agam6-Jul-05 3:58
Yigal Agam6-Jul-05 3:58 
QuestionHow can I download gif-file from internet (URL) in C# Pin
frada28-Jun-05 5:49
frada28-Jun-05 5:49 
AnswerRe: How can I download gif-file from internet (URL) in C# Pin
rwanderson28-Jun-05 7:56
rwanderson28-Jun-05 7:56 
GeneralRe: How can I download gif-file from internet (URL) in C# Pin
eggie528-Jun-05 9:57
eggie528-Jun-05 9:57 
GeneralRe: How can I download gif-file from internet (URL) in C# Pin
frada28-Jun-05 10:01
frada28-Jun-05 10:01 
GeneralChecking if a value is an integer Pin
Andy *M*28-Jun-05 5:08
Andy *M*28-Jun-05 5:08 
GeneralRe: Checking if a value is an integer Pin
User 665828-Jun-05 5:32
User 665828-Jun-05 5:32 
GeneralRe: Checking if a value is an integer Pin
Andy *M*28-Jun-05 6:14
Andy *M*28-Jun-05 6:14 
GeneralRe: Checking if a value is an integer Pin
Andy *M*29-Jun-05 3:05
Andy *M*29-Jun-05 3:05 

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.