I've been working in WPF and trying to start a Winform from that area. The only solution is to open it as a ShowDialog()
. Is this a bug or can we expect any problems in the future?
my other program is located in the same solution, but not the same namespace.
WindowsFormsApplication1.Form1 program2 = new WindowsFormsApplication1.Form1();
program2.ShowDialog();
I found the problem... the reason program2.Show()
was not working was becouse of Cefsharp during the launch of the second program via javascript the loading progress bar(Javascript) was not done loading. you can identify these problems with Cefsharp by tagging them in to
if (browser.CanExecuteJavascriptInMainFrame)
{
WindowsFormsApplication1.Form1 program2 = new WindowsFormsApplication1.Form1();
program2.Show();
}