Question on new window

Posts 1–9 of 9 · Page 1 of 1
Question on new window
Hey guys i am making a web browser. When ever a site opens a pop or something, that pop up opens in ie. how do i get it to open in a new window in my browser?

i tired the

(code here)

e.cancel or something and that does not work. any other ideas




2. I added a info thing to open before my program opens. what is the code so that checkbox2 is clicked that the info thing will stop starting on program start up.

you know like umm a dont show message thing again. but instead of a message not to show again it will be info.vb form.
Code:
  Private Sub WebBrowser1_NewWindow(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles WebBrowser1.NewWindow
        
        Dim webEl As HtmlElement = WebBrowser1.Document.ActiveElement
        Dim target As String = webEl.GetAttribute("href")

        Dim newI As New Form1
        newI.Show()
        newI.WebBrowser1.Navigate(target)


        e.Cancel = True
    End Sub
Ya, remember. that doesnt work.

it says cancel is not part of something. and i tried deleting it and that did not fix it
teamview..


code works for me , In fact, i can't get ot not to work


the comp i am on has no tv


sorry
Yes, I have a friend who works on some commercial projects with me, he codes for Coder Job Site, he developed a Internet Explorer Clone that matched IE8 Flawlessly
This is why I can't wait to get back into learning VB.Net...Easy to understand, but still enough of a challenge to be fun to find any problems.

Hmm...not trying to hijack the thread or anything, but it's possible to program a complete 3D game in VB.Net, am I right?
It is, XGelite is this sections Vb/3D/DirectX goto Guy, Plus

There are numerous 3D Gaming SDKs for use with In DirectX with VB(6) and Vb.net.

Microsoft has released them, I am pretty sure they have a updated DirectX SDK

Posts 1–9 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us