Something like this?
static void Main()
{
MyFormDialog dialog = new MyFormDialog(); /// inherits from form.
Application.Run(dialog); /// this line will exit when the dialog is closed
Form1 f1 = new Form1();
//// do stuff with dialog settings - im just making this up......
f1.InitializeFromDialogSettings(dialog);
Application.Run(f1);
}
> For the first run of my application, the configuration dialog
> needs to be displayed. I have tried loading the config dialog
> in the form load, but the form is not loaded yet. What is the
> easiest way to display the config dialog?
>
> Sam
Uchiha Jax - 15 Sep 2005 20:22 GMT
Sorry I read that incorrectly. You want the dialog afterwards, not before.
Call:
this.Show();
in the Load event before you show the dialog. Show is only called after load
as default.
> Something like this?
>
[quoted text clipped - 17 lines]
> >
> > Sam