hello, please help me about the winform show.

36 views
Skip to first unread message

Zohar Shi

unread,
Sep 6, 2017, 9:07:57 PM9/6/17
to CefGlue
my code is in my program.cs
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.

can you help me ? tanks!


Dmitry Azaraev

unread,
Sep 7, 2017, 6:10:43 AM9/7/17
to CefGlue

Look at sample Main method. You should show UI only in main process, and use CefRuntime.ExecuteProcess in child processes. Look how it is done in WpfOsr sample for example. WinForms.Demo has same logic, but bit more complex.


--
You received this message because you are subscribed to the Google Groups "CefGlue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cefglue+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages