OptionExplicit
PrivateSubCommand1_Click(IndexAsInteger)
SelectCaseIndex
Case0
Trip:WebBrowser1.Stop
Case1
WebBrowser1.Refresh
Case2
WebBrowser1.Gohome
Case3
‘OnErrorGoTotrip
WebBrowser1.GoBack
Case4
‘OnErrorGoTotrip
WebBrowser1.GoForward
EndSelect
EndSub
PrivateSubText1_KeyPress(KeyAsciiAsInteger)
IfKeyAscii=13Then
WebBrowser1.Navigate(Text1.Text)
EndIf
EndSub
PrivateSubWebBrowser1_BeforeNavigate2(ByValpDispAsObject,URLAsVariant,FlagsAsVariant,TargetFrameNameAsVariant,PostDataAsVariant,HeadersAsVariant,CancelAsBoolean)
Text1.Text=URL
EndSub
PrivateSubForm_Load()
WebBrowser1.GoHome
EndSub
PrivateSubWebBrowser1_StatusTextChange(ByValTextAsString)
EndSub
|