Results 1 to 3 of 3

Thread: [RESOLVED] is there a way to do this in vb6

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2009
    Posts
    573

    Resolved [RESOLVED] is there a way to do this in vb6

    i looked this up at microsoft its in vb net
    my question is there away of doing this in vb6
    thanks


    Code:
    Dim webclient As New System.Net.WebClient
    Dim ip As String
    ip = System.Text.Encoding.ASCII.GetString(( _
    webclient.DownloadData("http://whatismyip.com/automation/n09230945.asp")))
    TextBox1.Text = ip

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: is there a way to do this in vb6

    Add the Microsoft Internet Transfer Control component to your project. Place the Inet control on your form and

    Code:
    Private Sub Form_Load()
        Text1.Text = Inet1.OpenURL("http://whatismyip.com/automation/n09230945.asp")
    End Sub

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2009
    Posts
    573

    Re: is there a way to do this in vb6

    cool thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width