How can I open VB on Internet Explorer?

Asked By 30 points N/A Posted on -
qa-featured

Can someone help me by providing the code to use to be able for me to open VB using Internet Explorer?

SHARE
Best Answer by Tennesse Viry
Best Answer
Best Answer
Answered By 0 points N/A #192256

How can I open VB on Internet Explorer?

qa-featured

 

Maybe this can be a way to your task:

Private Sub Command1_click()

ExecLink http://google.com, vbNormalFocus

End Sub

Private Sub ExecLink(Url As String, VbAppWinStyle)

Shell “explorer.exe” & Url & “”, style

End Sub

Hopefully this will be what you have been searching for and might be helpful for you.

Good luck with your work.

Answered By 0 points N/A #192257

How can I open VB on Internet Explorer?

qa-featured

Here is a code sample to open Internet Explorer in VB

Private Sub BtnIE_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnIE.Click

    Dim IExplorer As Object = CreateObject("InternetExplorer.Application")
    IExplorer.Visible = True
    IExplorer.Navigate("www.google.com")

End Sub

Login/Register to Answer

Related Questions