Hawk_Boy Posted May 14, 2005 Posted May 14, 2005 Quick question, Hw do you make website links in VB 6.0? For instance, when you click on a button it takes you to a specific website.
orappa Posted May 15, 2005 Posted May 15, 2005 Just use the Shell command to fire up IE with the address of the site - e.g. "iexplore.exe http://www.mtavc.com" If you want to fire up the user's default browser (not necessarily IE), it's slightly more complicated. I'd read the location of the default browser from within the registry, but there may be an easier way via an API call.
Hawk_Boy Posted May 15, 2005 Author Posted May 15, 2005 Could you give me the code for that? I;am a beginner for VB 6.0
[SC]Arcadia Posted May 15, 2005 Posted May 15, 2005 Command Sub Click1 Shell Http://www.yourwebsite.com End Sub Maybe something like that im a noob to.
orappa Posted May 15, 2005 Posted May 15, 2005 I thought Shell was only for executable files. I think you'd need the ShellExecute API call to do that (if I recall correctly - it's a long time since I last programmed).
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now