Webbrowser1_newwindow advanced
Sorry, I posted this earlier, but in the wrong section.  I am really stressed out, haven't gotten anywhere with this after days of searching everywhere I could think of.

I have no problem opening new windows when a link is clicked.  (e.cancel=true then you can see the code I've been using below).  But I am making a custom webbrowser for work, for just one website.  On that site is a form, and when the use clicks submit, an IE window still opens and New Form 2 just won't open on that one.

My code looks like this:

       Dim thiselement3 As HtmlElement = WebBrowser1.Document.Window.Frames("main").Document.ActiveElement     
       Dim targeturl3 As String = thiselement3.GetAttribute("href")
      If targeturl3.Contains("locverfy.asp") Then
         Dim Window As New Form1
         Window.Show()
         Window.WebBrowser1.Navigate(targeturl3)
         Window.Timer3.Enabled = False
      End If 

Which is refrencing a submit button on a form that begins then ends with the following two lines respectively.

    <form class="clsFORM" method="post" name="CREFORM" onSubmit="return CheckForm()"> 
Then:

    <input type="Submit" name="SubmitCreateEvent" value="Submit">

The <a href="http://www.textbin.com/show_text.php?id=p5758">code for CheckForm() can be found at this link</a>.

I've tried about 1,000 things, mostly like changing my code to thiselement3.getattribute("newurl") or ("urL"), etc.  I am using vb.net 2010.  Any help would be greatly appreciated.  I'm really killing myself on this one.  Thanks!
Webbrowser1_newwindow advanced
===

Sorry, I posted this earlier, but in the wrong section.  I am really stressed out, haven't gotten anywhere with this after days of searching everywhere I could think of.

I have no problem opening new windows when a link is clicked.  (e.cancel=true then you can see the code I've been using below).  But I am making a custom webbrowser for work, for just one website.  On that site is a form, and when the use clicks submit, an IE window still opens and New Form 2 just won't open on that one.

My code looks like this:

       Dim thiselement3 As HtmlElement = WebBrowser1.Document.Window.Frames("main").Document.ActiveElement     
       Dim targeturl3 As String = thiselement3.GetAttribute("href")
      If targeturl3.Contains("locverfy.asp") Then
         Dim Window As New Form1
         Window.Show()
         Window.WebBrowser1.Navigate(targeturl3)
         Window.Timer3.Enabled = False
      End If 

Which is refrencing a submit button on a form that begins then ends with the following two lines respectively.

    <form class="clsFORM" method="post" name="CREFORM" onSubmit="return CheckForm()"> 
Then:

    <input type="Submit" name="SubmitCreateEvent" value="Submit">

The <a href="http://www.textbin.com/show_text.php?id=p5758">code for CheckForm() can be found at this link</a>.

I've tried about 1,000 things, mostly like changing my code to thiselement3.getattribute("newurl") or ("urL"), etc.  I am using vb.net 2010.  Any help would be greatly appreciated.  I'm really killing myself on this one.  Thanks!