My app is like this
static void Main()
{
MessageBox.Show("aaa");
Application.EnableVisualStyles();
MessageBox.Show("b");
Application.SetCompatibleTextRenderingDefault(false);
MessageBox.Show("c");
Application.Run(new login());
MessageBox.Show("d");
}
Only MessageBox
is visible on screen, in taskbar appears the application is running but the window form login()
never shows.
When the last MessageBox
is closed, the app closes immediately.
I'm a new developer in C# with .NET