Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening a Web Page in VB 6

Status
Not open for further replies.

one4thumb

Technical User
Jun 13, 2006
33
US
I want to open a Web Page (three of them in fact) using the default web browser.

If Possible i would prefer to download files from a web page by clicking a command button in my program

How do I do this?

Thank You
 
To download web pages into your program (as a text string) use the internet transfer control. To open the pages you can use the web browser control.

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
I found this in another forum, which is what I want. However I want to open multiple websites each either in a seperate window or separte tab (Netscape).

I am sure that it can be sone with what is here with some additions, I just don't understand enough about what is here to be able to make it work.

Option Explicit
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 Sub CMDButton_Click ()
ShellExecute Me.hwnd, "Open", " vbNullString, App.Path, vbNormalFocus

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top