Page 1 of 1

hello, please help me about the winform show.

PostPosted: Wed Sep 06, 2017 8:38 pm
by shizenghua
my code is in my program.cs
Code: Select all
LoginForm loginfrm = new LoginForm();
loginfrm.ShowDialog();
if (loginfrm.DialogResult.Equals(DialogResult.OK))
{
    Application.Run(new MainForm(args));
}

when i run, input the user and password, and click the login button, the loginfrom is hide, the webbrowser mainform popup, the same time , the loginfrom popup two or there times.

please see the flowing two img demo:
1.png
1.png (78.81 KiB) Viewed 6240 times

2.png
2.png (111.08 KiB) Viewed 6240 times