J
jy836
I'm trying to load a form from the Sub Main procedure in a module (I set Sub
Main as the startup object). I have this line in the declarations section:
Public MnFrm As New MainForm
In the Sub Main procedure, I have this line:
MnFrm.Show()
But when I run the program, the form displays itself for a short second or
two, and then disappears, and the application stops. I used the ShowDialog
method, and it worked, but I don't want to use that if I don't have to
(because of other problems it causes--I want to create a second modeless
form that floats over the main one). Is there some other way around this
problem?
Main as the startup object). I have this line in the declarations section:
Public MnFrm As New MainForm
In the Sub Main procedure, I have this line:
MnFrm.Show()
But when I run the program, the form displays itself for a short second or
two, and then disappears, and the application stops. I used the ShowDialog
method, and it worked, but I don't want to use that if I don't have to
(because of other problems it causes--I want to create a second modeless
form that floats over the main one). Is there some other way around this
problem?