Hi,
You can follow these steps:
Step 1:Write code to do this inside NewWindow event handler:
1. Create a new tab;
2. Create a new Button inside that tab;
3. Display that tab (set it to active);
After this step when you try to open a new window in WebView, your code would open a new tab and display a new Button in that tab. This step is where different user may choose to do things very differently. For example, you wanted to display a new tab, another user may wanted to display a completely new Form.
Step 2:Replace the Button control with EO.WinForm.WebView control. For example, if the code in step 1 is:
Code: C#
Button button = new Button();
Then you replace it with:
Code: C#
EO.WinForm.WebControl webControl = new EO.WinForm.WebControl();
Step 3:Set the WebControl's WebView to e.WebView:
Code: C#
webControl.WebView = e.WebView;
To summarize, these steps together does:
1. Create a new tab (as you wished);
2. Create a new WebControl inside that tab;
3. Hand e.WebView over to this WebControl to display;
We generally do not provide code for you to copy and paste, especially for generic programming task such as step 1 because you need to understand how the code works in order to use our product effectively. If you have any problems understanding any of these steps please feel free to ask, but in the end you must be able to write your own code.
Thanks!