Solved

URL Execution

Posted on 2000-03-01
2
139 Views
Last Modified: 2010-05-02
How do I access an URL through my VB application
0
Comment
Question by:arun_dp
2 Comments
 
LVL 3

Accepted Solution

by:
Gordonp earned 50 total points
ID: 2572600
USe the ShellExecute API Call

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Private Const WS_MAXIMIZE = &H1000000


Then use like

Private Sub Command1_Click()
ShellExecute(Form1.hWnd,"Open","http://www.experts-exchange.com","","",WS_MAXIMIZE)
End Sub

This opens the specified URL in your default Web Browser

Gordon
0
 
LVL 20

Expert Comment

by:hes
ID: 2573577
You can also use the WebBrowser object on a form and

WebBrowser1.Navigate "www.your.destination"
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

744 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

16 Experts available now in Live!

Get 1:1 Help Now