Welcome Guest Search | Active Topics | Sign In | Register

how to open the popup in the same window? Options
Luiz
Posted: Tuesday, December 15, 2015 8:33:42 AM
Rank: Newbie
Groups: Member

Joined: 12/15/2015
Posts: 8
how to open the popup in the same window?
eo_support
Posted: Tuesday, December 15, 2015 10:53:23 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Which product are you talking about?
Luiz
Posted: Tuesday, December 15, 2015 2:15:15 PM
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
eo_support
Posted: Tuesday, December 15, 2015 2:16:36 PM
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!
Luiz
Posted: Wednesday, December 16, 2015 7:55:17 AM
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!
eo_support
Posted: Wednesday, December 16, 2015 8:47:32 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
You need to add w into your form.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.