
terrankiller
Veteran

Aug 1, 2005, 4:42 AM
Post #4 of 24
(319 views)
Shortcut
|
|
Re: [Impersonater] Help Please.
[In reply to]
|
Can't Post
|
|
Ok, but I'm going to explain what this code does: Private Sub Form_Resize() On Error Resume Next WebBrowser1.Move 0, 0, Me.ScaleWidth, Me.ScaleHeight WebBrowser1.RightMargin = WebBrowser1.Width End Sub This code resizes the web browser to fit the form. Try resizing your web browser and see what happens. Private Sub WebBrowser1_BeforeNavigate2(ByVal pDisp As Object, URL As Variant, Flags As Variant, TargetFrameName As Variant, PostData As Variant, Headers As Variant, Cancel As Boolean) On Error Resume Next If URL = "http://www.runescape.com/" Then Cancel = True End Sub This code will cancel the redirection to http://www.runescape.com. So now you can work on a world switcher without the web browser being redirected.
(This post was edited by terrankiller on Aug 1, 2005, 4:46 AM)
|