PDA

View Full Version : help with VB



Swinkid
31-12-2006, 03:27 PM
hi im lernig VB i can make a basic program well a window with writing in it but is there a way to click text and it goes to a url because ican make a browser in it its jsut clicking the lniksi cant figer out :S

Call
31-12-2006, 08:08 PM
Use your browser like say its browser1 as its name

Double click your text and for code put
browser1.navigate "http://www.google.co.uk"

Change url obviously.

CJ-real
31-12-2006, 08:13 PM
No, I think he means that you have the URL bar so the client can change it?

beer
31-12-2006, 08:16 PM
I had 2 do 1 for my college course. Ill c if I can find the code 1 min. Ill edit this when I find it.

FOUND!

Double-click on your command button and enter this code:

Public ie as InternetExplorer
Private Sub Command1_Click()
Set ie = CreateObject("InternetExplorer.Application")
ie.Navigate2 "http://visualbasic.about.com"
End Sub

change http://visualbasic.about.com to your desired URL e.g. http://www.habbox.com

Oh sorry I thought u meant click a button on a form and it goes to desired URL lol. Sorry.

Call
31-12-2006, 08:18 PM
Just lock the text box then if you want no editing?

Want to hide these adverts? Register an account for free!