Startup application

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

Guest

Hi all,

The entry point of my application is the controller class. After the
creation of some variables a form should be shown. I do:
MainForm myForm = new MainForm;
myForm.Show();

The form shows for a mment but then disappears. How can I show the form in a
proper way?

regards
Stijn
 
Hi Stijn,

Controller class?

How are you launching it in Main()? Could you show us more detailed code
where you start myform?
You need to attach a messageloop (Application.Run) if there isn't one
already.
 
Back
Top