R
rettigcd
Sometimes my main form appears and sometimes it doesn't. VS.NET acts
as if the process is running and I can click the "stop" button but I
get no windows or forms.
Here is my code:
static void Main() {
try{
MainForm frm = new MainForm();
Application.Run( frm );
} catch( System.Exception ex ){
MessageBox.Show( ex.Message );
}
}
When I debug it, the MainForm constructs just fine but when the
execution enters Application.Run( ), the OnLoad event in never called
and the window doesn't appear.
Then I run it again and it works fine, and I run it again and it
doesn't.
Does anybody have any ideas about how I can figure out what the problem
is.
thanks,
Dean Rettig
as if the process is running and I can click the "stop" button but I
get no windows or forms.
Here is my code:
static void Main() {
try{
MainForm frm = new MainForm();
Application.Run( frm );
} catch( System.Exception ex ){
MessageBox.Show( ex.Message );
}
}
When I debug it, the MainForm constructs just fine but when the
execution enters Application.Run( ), the OnLoad event in never called
and the window doesn't appear.
Then I run it again and it works fine, and I run it again and it
doesn't.
Does anybody have any ideas about how I can figure out what the problem
is.
thanks,
Dean Rettig