
jboy184
Newbie
Aug 28, 2005, 7:55 AM
Post #1 of 2
(309 views)
Shortcut
|
|
[TUT] very useful things to know and tuts
|
Can't Post
|
|
Ok so u probably know how to make a webbrowser - well most people do. ever though to urself... they r all the same none of them tell me how to add a "back","forward" and "refresh" button. well if u want to do it as buttons then make the buttons and enter the following code once u double click on the certain buttons: Back:
On error resume next WebBrowser1.GoBack Forward:
On error resume next WebBrowser1.GoForward Refresh:
On error resume next WebBrowser1.Refresh If you wana do something a little bit cooler and more advanced u can make it as keypresses... NOTE: go to form properties - key preview must be turned to true! for example:
Private Sub Form_KeyDown(KeyCode As Integer) If KeyCode = vbKeyBack Then (back button).click End If If KeyCode = vbKeyF5 Then (refresh button).click End If If KeyCode = vbKey(whatever you want) Then (forward button).click End If End Sub hope this was helpful... also another tut: ever wondered how to make menus on ur program e.g the file, edit, view thingy. well right click on the form and go to menu editor make a name and caption for it. when u see it in the text box below click it and then click insert. now type in an option that u want to appear when u press ur menu name. to make multiples, click the right arrow button now make a caption of: "-" (without quote marks) then make anoher option. u will see that the dash caption has made a nice line to seperate the options. hope these have helped u
They say u hear satanic things when u run a windows xp disk backwards... but thats nothin compared to when u run it normally as it installs windows!!!
(This post was edited by jboy184 on Aug 28, 2005, 7:56 AM)
|