Startup application

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
 
M

Morten Wennevik

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top