How to handle the New Window Event error

An Essential Objects admin showed me how to handle the New Window event error.  You have to click on WebView then select the events icon and then scroll down to New Window then click on it and a method will be created. Type the following in the body of the method:

//Step 1:

            //Create a new Form with a blank WebControl

            //This new Form is the popup window

            Form wsform1 = new Form();

            wsform1.Text = "Wesley Snipes Afterburn - by Jackson D.W.";

            wsform1.Icon = Properties.Resources.WesleySnipes;

            wsform1.WindowState = System.Windows.Forms.FormWindowState.Maximized;

            EO.WinForm.WebControl wswebControl = new EO.WinForm.WebControl();

            wswebControl.Dock = DockStyle.Fill;


            //Step 2:

            //Put the new WebView (created by the browser engine)

            //in the new blank WebControl

            wswebControl.WebView = e.WebView;

            //Step 3:

            //Display the new Form


            //Step 4:

            //Notify the browser engine that you "accept" (and display)

            //the popup

            e.Accepted = true;


  1. Once a template is completed and fed into the system, the components are produced repeatedly. It can cater to a variety of|quite so much of|a big selection of} orders like tiny steel plates bent Mittens for Men to a specific angle, engraved with numbers or a big panel with a punched hole. If you might be} wondering what the pc in CNC machines appears like, they don't appear to be|they aren't} your typical desktop computer.


Post a Comment

Popular posts from this blog

WELCOME to my App Development website

I removed the Prince Fan 2 app from my blog

Update to 911 Emergency Service and sending pre-recorded emergency messages to 911 and emergency family and friends contacts