Solved

Linking to a web site...

Posted on 1999-01-11
10
150 Views
Last Modified: 2011-10-03
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?
0
Comment
Question by:lbowers
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 12

Expert Comment

by:mark2150
ID: 1455458
Easy enough to spawn a copy of IE and pass it a URL.

M

0
 
LVL 1

Expert Comment

by:MAVERICK
ID: 1455459
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
 

Accepted Solution

by:
edunc earned 100 total points
ID: 1455460
use this line of code.  i use it all the time for links.

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

Expert Comment

by:edunc
ID: 1455461
oops.  it's:

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

I forgot the " at the end of shell
0
 
LVL 12

Expert Comment

by:mark2150
ID: 1455462
Easy enough, no?

M

0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 1

Expert Comment

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

this will supress the MSDOS window

regards
Jon

0
 

Expert Comment

by:edunc
ID: 1455464
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
 
LVL 1

Expert Comment

by:MAVERICK
ID: 1455465
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
 

Author Comment

by:lbowers
ID: 1455466
Thanks to all for your help and comments.
0
 

Expert Comment

by:edunc
ID: 1455467
maverick - does the 0 make it not in the taskbar?
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now