By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,950 Members | 1,019 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,950 IT Pros & Developers. It's quick & easy.

Show IP Address on label when Form Load

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

This is my code:

Expand|Select|Wrap|Line Numbers
  1.  Function GetIP() As String
  2.         Dim IP As New WebClient
  3.         Return IP.DownloadString("http://icanhazip.com/")
  4.     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.
Sep 7 '15 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.