Free Games Forum
Free Games Games Forums Music Forums TV Forums

  Free Games Forum Home FORUM
HOME
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN
Rules & FAQ RULES / FAQ
REPORT SPAM

Free Games Forum: Game Technology: Visual Basic / VB:
[TUT] very useful things to know and tuts

 

 


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:

Code
On error resume next 
WebBrowser1.GoBack

Forward:

Code
On error resume next 
WebBrowser1.GoForward

Refresh:

Code
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:

Code
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

Smile


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)



Jakestah
Veteran


Sep 3, 2005, 1:23 AM

Post #2 of 2 (280 views)
Shortcut
Re: [jboy184] [TUT] very useful things to know and tuts [In reply to] Can't Post

Nice tutorial : )

 
 
 


Search for (options) Web Design by Web Ideas - Page loaded in: 0.13 s on (CGI/1.1)