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
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
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
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