Welcome Guest Search | Active Topics | Sign In | Register

EO.Webbrowser and Newwindow (VB.NET) Options
Sirmaniak
Posted: Wednesday, November 26, 2014 7:50:09 AM
Rank: Newbie
Groups: Member

Joined: 11/26/2014
Posts: 3
Hello, i have this code, but the programan lock and don't show the new window what i click on the link, can you help me? Thank you.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Webview1.LoadUrlAndWait("www.meristation.com/noticias/448267")
End Sub

Private Sub Nueva_Ventana(ByVal sender As System.Object, ByVal e As EO.WebBrowser.NewWindowEventArgs) Handles Webview1.NewWindow
e.Accepted = True
End Sub

* When i click on any banner (by sample), the control webview is blocked and don't see nothing :(
eo_support
Posted: Wednesday, November 26, 2014 9:37:20 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

You can't just Accept the new WebView, you have to also show it. EO.WebBrowser does not know where you want to show the new WebView. For example, you may want to show it as a dialog, or show it as a tab, or show it as a new window. So EO.WebBrowser will not show the new WebView for you. You can find more information about this here:

http://www.essentialobjects.com/doc/6/advanced/new_window.aspx

You can also find sample code in our TabbedBrowser sample. In that sample it creates a new Tab and display the new WebView in that tab. Obviously your case might be different (that's exactly why EO.WebBrowser left that part to you). So the sample code is just for you to get the idea of what you need to do in the event handler.

Thanks!
Sirmaniak
Posted: Thursday, November 27, 2014 8:47:43 AM
Rank: Newbie
Groups: Member

Joined: 11/26/2014
Posts: 3
Thank you. The source code is very complex for me, and this get out a error at visual basic 2010.
Can you tell me where i can get a simple source code for show a new tab or window with Eo.webbrowser?. Only want show it as a tab. Thank you.
Thank you.
eo_support
Posted: Monday, December 1, 2014 2:19:42 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
You will need to be able to read and understand the sample code and documentations. If those are too difficult for you, you will need to seek help from someone around you. We won't be able create specific sample to show you just exactly what you want to do here. Sorry about it!


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.