Linking to a web site...

I want to make it possible for the user of my app to be able to click a button/image to be taken to my home page (via IE of course). Is this easily achievable with VB 6?
lbowersAsked:
Who is Participating?
 
eduncConnect With a Mentor Commented:
use this line of code.  i use it all the time for links.

retVal = shell("start http://www.yourpage.com/)
0
 
mark2150Commented:
Easy enough to spawn a copy of IE and pass it a URL.

M

0
 
MAVERICKCommented:
You could always execute a windows shortcut to the URL...... simply add the URL: to favourites... go to windows/favourites and copy the shortcut out to where u want it....


0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
eduncCommented:
oops.  it's:

retVal = shell("start http://www.yourpage.com/")

I forgot the " at the end of shell
0
 
mark2150Commented:
Easy enough, no?

M

0
 
MAVERICKCommented:
Add a 0 to the code...
retVal = shell("start http://www.yourpage.com/",0)

this will supress the MSDOS window

regards
Jon

0
 
eduncCommented:
you don't need to add a 0 at the end.  By default, the window will already be minimized, and w/ focus i think.  it doesn't matter if it has the focus anyway becuase the new browser window will take the focus when it opens.
0
 
MAVERICKCommented:
actually that is not strictly correct.... what happens is that a MSDOS icon apears in the task bar... putting the '0' will suppress that....

But '0' is not the default.....

sorry If this seems like being pedantic... I just noticed it while I was trying it out... and thought it may be useful to lbowers, thats all

Regards
Jon

0
 
lbowersAuthor Commented:
Thanks to all for your help and comments.
0
 
eduncCommented:
maverick - does the 0 make it not in the taskbar?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.