View Single Post
(#10)
Old
W a r n i n g is Offline
1337
W a r n i n g is on a distinguished road
 
Posts: 280
Join Date: Jun 2006
Send a message via AIM to W a r n i n g Send a message via MSN to W a r n i n g
Default 07-18-2006, 12:03 PM

Quote:
Originally Posted by DefectiveProduct
Sorry for the double post but I looked over 3.0 and found that the browser buttons shut down the program and give you an error when they have nowhere to navigate.

You can prevent this by adding a line of On error resume next before each coding for the browser buttons.

Like,

Code:
Private Sub BtnBack_Click()
On error resume next
Webbrowser.GoBack
End Sub
That way it skips on error and you can click the buttons all you want without the program.

EDIT: And maybe you could include a KeyDown function that makes the browser navigate when you hit enter in the URL bar.
Code:
Private Sub TxtUrlBar_KeyDown(KeyCode As Integer, Shift As Integer)
On Error Resume Next
If KeyCode = vbKeyReturn Then
Browser.Navigate TxtUrlBar.Text
End If
End Sub
It isnt a double post when you post at two diffrent times. Not like 7:30 then 7:32 but like 7:30 and then 8:00 And when is this going to be out?



looking for 1 dollar donations throught paypal... send me the money throught tyler@toxictunes.net
Reply With Quote