Post by thepthai on Sept 11, 2014 20:38:20 GMT 10
Ahh ok. Dim Browser As New WebBrowser Dim newTab As New TabPage() newTab.Controls.Add(Browser) TabControl1.TabPages.Add(newTab) Browser.Name = "Browser" Browser.Dock = DockStyle.Fill AddHandler Browser.DocumentCompleted, AddressOf Done AddHandler Browser.ProgressChanged, AddressOf Loading Browser.ScriptErrorsSuppressed = True '<< Add this to stop getting Script Errors in browser Browser.GoHome() StartMenuPanel.Hide() TabControl1.SelectedTab = newTab
ohhhh You are so good. it working already. thank you very much.
|
|
Post by thepthai on Sept 11, 2014 20:40:05 GMT 10
Hey thepthai, Just put all the timer methods in a Try event, because when you're adding a tab it's still focusing on the previous tab. Putting it in a Try should avoid the error, although there might (not too sure though) be some methods which will go out of place. Example: Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Try If CType(TabControl1.SelectedTab.Controls(0), WebBrowser).CanGoBack = True Then Button1.Enabled = True Else Button1.Enabled = False End If
If CType(TabControl1.SelectedTab.Controls(0), WebBrowser).CanGoForward = True Then Button2.Enabled = True Else Button2.Enabled = False End If If CType(TabControl1.SelectedTab.Controls(0), WebBrowser).IsBusy = True Then Button4.Enabled = True Else Button4.Enabled = False End If Catch ex As Exception End Try End Sub
All though I'm not sure whether or not you're using that ^^^. If you are then it might just be something else (which I'm unaware of for now). Hope this helps! thank you so much. it now working already
|
|
Post by Imformas on Sept 11, 2014 20:40:31 GMT 10
Your welcome my freind.
Programming language'sCSharpC++CObjective-CVBProject'sSharpMediaSharpEditYoutifygithub.com/Stephen-Fox-0
|
|
Post by thepthai on Sept 11, 2014 20:44:48 GMT 10
you are very kind.
|
|
Post by Imformas on Sept 11, 2014 20:50:49 GMT 10
Programming language'sCSharpC++CObjective-CVBProject'sSharpMediaSharpEditYoutifygithub.com/Stephen-Fox-0
|
|
Post by Nathan Lecompte on Sept 11, 2014 21:16:43 GMT 10
No worries Welcome to the forum btw
|
|
Post by thepthai on Sept 11, 2014 21:33:28 GMT 10
No worries Welcome to the forum btw haha thank you so much. i testing "webkitbrowser" in vb.net (change ie >> chrome) (i hope it working. )
|
|
Post by Imformas on Sept 11, 2014 21:45:32 GMT 10
Good Luck
Programming language'sCSharpC++CObjective-CVBProject'sSharpMediaSharpEditYoutifygithub.com/Stephen-Fox-0
|
|