Essential Objects inc recommended a different solution for the New Window Event Error

 I had posted my fix in a prior post to the Essential Objects support forum. They said that was not the normal way to handle that error. Here is the code:


//Step 1:
//Create a new Form with a blank WebControl
//This new Form is the popup window
Form form1 = new Form();
EO.WinForm.WebControl webControl = new EO.WinForm.WebControl();
webControl.Dock = DockStyle.Fill;
form1.Controls.Add(webControl);

//Step 2:
//Put the new WebView (created by the browser engine)
//in the new blank WebControl
webControl.WebView = e.WebView;

//Step 3:
//Display the new Form
form1.Show();

//Step 4:
//Notify the browser engine that you "accept" (and display)
//the popup
e.Accepted = true;

Comments

Popular posts from this blog

Back At it

WELCOME to my App Development website