Loading Form Beofre Loading the MainForm

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'm writing a windows application and i need to check if a certain file
exsits before i'm loading my MainForm.
Incase the file doesn't exsit, i want to load a different form (without
loading my MainForm) and after the user pressed the ok button and the file
was created then to load my MainForm. Incase that the file exsits i want to
load my MainForm Directly.

How can I do it?

Thanks,
Gidi.
 
Hi,


I think this may help you:

[STAThread]
static void Main()
{
if ( flag )
Application.Run(new Form1());
else
Application.Run(new Form2());
}


cheers,
 
Back
Top