|
Rank: Newbie Groups: Member
Joined: 12/15/2015 Posts: 8
|
how to open the popup in the same window?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Which product are you talking about?
|
|
Rank: Newbie Groups: Member
Joined: 12/15/2015 Posts: 8
|
I am using Web Control, with WinForms and VB.NET.
I researched and found that I have to use the NewWindow event, but all show to open the popup in another form. I need to open in the same form and the same WebControl.
thank you
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
You do not have to open in a different form. All you need to do is to place the new WebView somewhere. Whether to put it in an existing form or in a new form is completely up to you.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 12/15/2015 Posts: 8
|
Okay, from what I understand, I have to put on the form 1 webcontrol and 2 webviews. Correct?
How is the code of NewWindow event?
Private Sub WebView1_NewWindow(sender As Object, e As EO.WebBrowser.NewWindowEventArgs) Handles WebView1.NewWindow e.Accepted = True
Dim w As WebControl = New WebControl w = Me.Controls("WebControl") w.WebView = e.WebView
End Sub
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
You need to add w into your form.
|
|