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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Call IE from VB 1

Status
Not open for further replies.

moonoo

Programmer
May 17, 2000
62
0
0
US
Hi,
I have an html file which i want to open in IE
if an button is clicked . I have set the project
refrence to Microsoft Internet Controls . Which
other DLLs i have to set in ordder to Create the
Object of Internet Explorer and how do i create
it Please Help mp...
Regards
Deb
 
Hi moonoo,

I know that this is not exactly what you're asking for, but it works...

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

Call ShellExecute(0&, vbNullString, " vbNullString, vbNullString, 5)

Sunaj
 
you could use the reference to Microsoft IEnternet controls to use an IE object

Sub LaunchFileInIE(vstrFileName as string)
Dim ie As InternetExplorer
Set ie = New InternetExplorer
ie.Visible = True
ie.Navigate vstrFileName
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top