Link to home
Start Free TrialLog in
Avatar of lbowers
lbowersFlag for United Kingdom of Great Britain and Northern Ireland

asked on

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?
Avatar of mark2150
mark2150

Easy enough to spawn a copy of IE and pass it a URL.

M

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....


ASKER CERTIFIED SOLUTION
Avatar of edunc
edunc

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
oops.  it's:

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

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

M

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

this will supress the MSDOS window

regards
Jon

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.
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

Avatar of lbowers

ASKER

Thanks to all for your help and comments.
maverick - does the 0 make it not in the taskbar?