hey guys i am new here just a beginner in vb.net i have a question i made a login form for a browser game but i am stuck on how to go forward to seconde load game .. vb.net web-game (www.darkorbit.com) username =strikerII password = 1236987

windows form application with :

2 textbox
1 web-browser
3 buttons

PublicClassForm1
Dim didWeNavigated? AsBoolean = False
Dim gottheserver? AsBoolean = False


PrivateSub Button1_Click(sender AsObject, e AsEventArgs) Handles Button1.Click
WebBrowser1.Navigate("http://www.darkorbit.com")
didWeNavigated = True
EndSub


PrivateSub WebBrowser1_DocumentCompleted(sender AsObject, e AsWebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
If didWeNavigated = FalseThen
Exit Sub
EndIf
If didWeNavigated = TrueThen didWeNavigated = False
Dim username AsString = TextBox1.Text
Dim password AsString = TextBox2.Text
WebBrowser1.Document.GetElementById("bgcdw_login_form_username").SetAttribute("Value", username)
WebBrowser1.Document.GetElementById("bgcdw_login_form_password").SetAttribute("Value", password)
Dim Html AsHtmlElement
ForEach Html In WebBrowser1.Document.GetElementsByTagName("input")
If Html.GetAttribute("type") = "submit"Then
Html.InvokeMember("Click")
EndIf
Next
EndSub

*****till here all work fine ******


PrivateSub Button2_Click(sender AsObject, e AsEventArgs) Handles Button3.Click
WebBrowser1.Document.GetElementById("header_start_btn").InvokeMember("click")

EndSub
?*****the problem is here when i click button 2 it popup I.E page with error and i want to popup in the same web-browser1
dunno how to make it i tried to find in google but nothing*******



?


PrivateSub Button3_Click(sender AsObject, e AsEventArgs) Handles Button3.Click
Me.Close()
EndSub
EndClass

any idea ??!!!
best regards