|
-
Jul 25th, 2007, 08:13 AM
#1
Thread Starter
Member
how to know my IP and write it in a label
hi everyone
i want to have on my form my ip when i load it , i want to it to be writen on a label
can someone help me to do that
thank you all
-
Jul 25th, 2007, 09:42 AM
#2
Re: how to know my IP and write it in a label
Place a Winsock control on your form.
Code:
Private Sub Form_Load()
Label1.Caption = Winsock1.LocalIP
End Sub
-
Jul 29th, 2007, 09:02 PM
#3
Re: how to know my IP and write it in a label
If you are behind a router or something, that will return your LAN IP. If you want your internet IP then click the link in my signature.
-
Jul 30th, 2007, 07:30 AM
#4
Re: how to know my IP and write it in a label
 Originally Posted by DigiRev
If you want your internet IP then click the link in my signature.
Nice piece of work.
-
Jul 30th, 2007, 10:56 AM
#5
Re: how to know my IP and write it in a label
 Originally Posted by Hack
Nice piece of work. 
Thanks, Hack.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|