General discussion

Locked

VB Programming Problemm

By Adriano.herberth ·
I have an application designed in Visual Basic 6. I need d same app to wake up and run Internet Explorer 5 even close it after some input time. And if the IE5 was closed by the user then print msg on screen. SO, I NEED SOME INSTRUCTION(CODE) THAT CAN HELP ME TO DO THIS IN VB6

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

VB Programming Problemm

by zhangyinping In reply to VB Programming Problemm

First, you need set a reference of the Microsoft internet controls.
Then add the following code to your project

Dim WithEvents IE5 As InternetExplorer

add the following code to the procedure which you want it to wake up the IE.

Set IE5 = New InternetExplorer
IE5.Visible = True
IE5.Navigate "The URL you want IE to go"

This will open the IE. If you want to close it. add the following code to the procedure

IE5.Quit
Set IE5 = Nothing

If IE5 is closed by the user, put some code to the IE5 onquit event procedure. like this:

Private Sub IE5_OnQuit()
Msgbox "Donot close IE"
End Sub

Use Object Browser the check out the Object Model of the Internet Explore object.

If you need any more info, please email me.

ZYP, MCSD

Collapse -

VB Programming Problemm

by Adriano.herberth In reply to VB Programming Problemm

Poster rated this answer

Collapse -

VB Programming Problemm

by Adriano.herberth In reply to VB Programming Problemm

This question was closed by the author

Collapse -

VB Programming Problemm

by Adriano.herberth In reply to VB Programming Problemm

I have to say that it was very intelligent of course it works.

Back to Web Development Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums