Re: [ADVANCED-DOTNET] Events fired when Form.ShowDialog is called

2006-11-27 Thread Eddie Lascu
P.COM Subject: Re: [ADVANCED-DOTNET] Events fired when Form.ShowDialog is called Eddie Lascu <[EMAIL PROTECTED]> wrote: > The way I understand this is that even if I re-instantiate the class that > implements my form, the framework will reuse some previously created > structures an

Re: [ADVANCED-DOTNET] Events fired when Form.ShowDialog is called

2006-11-27 Thread Barry Kelly
Eddie Lascu <[EMAIL PROTECTED]> wrote: > The way I understand this is that even if I re-instantiate the class that > implements my form, the framework will reuse some previously created > structures and that's how I would explain why the Load event is not fired > for subsequent calls to ShowDialog

Re: [ADVANCED-DOTNET] Events fired when Form.ShowDialog is called

2006-11-27 Thread Eddie Lascu
ECTED] Behalf Of Geoff Taylor Sent: Monday, November 27, 2006 10:47 AM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Events fired when Form.ShowDialog is called How about: using (MyDialog dialog = new MyDialog ()) { // Call your initialise m

Re: [ADVANCED-DOTNET] Events fired when Form.ShowDialog is called

2006-11-27 Thread Geoff Taylor
How about: using (MyDialog dialog = new MyDialog ()) { // Call your initialise method dialog.MyInitialise (); if (dialog.ShowDialog () == DialogResult.OK) { // Fetch my results results = dialog.GetMyResults (); } } So, you ca