Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27329

VS 2010 Calling a url with VB2010

$
0
0
Hi,

I am new to this forum and to VB. This code is working perfectly in VBA (excel sheet):

Private Sub CommandButton1_Click()

Set ie = CreateObject("InternetExplorer.Application")
With ie
.Visible = False
.Navigate "http://84.105.149.240:200/?PLS1=ON"
.Navigate "http://192.168.1.200/?PLS1=ON"
End With
End Sub

I tried the same code in VB2010 in several different ways but i can't get it working.

This is my latest result:

Public Class Form1
Private Sub Button1_Click()

Dim IE As SHDocVw.InternetExplorerMedium
IE = CreateObject("InternetExplorer.Application")
With IE
.Visible = True
.Navigate("http://84.105.149.240:200/?PLS1=ON")
.Navigate("http://192.168.1.200/?PLS1=ON")
End With

End Sub

End Class

What is going wrong?

Viewing all articles
Browse latest Browse all 27329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>