Show IP Address on label when Form Load

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • coderbot
    New Member
    • Sep 2015
    • 1

    Show IP Address on label when Form Load

    I want to show the IP address whenever the form load without clicking the button to show IP address.

    This is my code:

    Code:
     Function GetIP() As String
            Dim IP As New WebClient
            Return IP.DownloadString("http://icanhazip.com/")
        End Function
    I want to show the IP address in LABEL, but i can't understand how to show this in label. With button i can see the ip address but i don't want to be look like that way. Please help.
    Last edited by Rabbit; Sep 7 '15, 03:30 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.
Working...