[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Linking to a web site...

Posted on 1999-01-11
10
Medium Priority
?
159 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 400 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

834 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