get ip adress and display it on the desktop [RESOLVED]
can anyone tell me how?
I have this code:
It displays the machine's ipdress to the label1, but I want it to display it on the Desktop background of the computer
Thanks in advance.
Greetzzz,
CornElvis
can anyone tell me how?
I have this code:
VB.NET:
Imports System.net
[SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] ipEntry [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] IPHostEntry = Dns.GetHostByName(Environment.MachineName)
[/SIZE][SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] IpAddr [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] IPAddress() = ipEntry.AddressList
[/SIZE][SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] i [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Integer
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].Label1.Text = IpAddr(0).ToString()
[/SIZE]
Thanks in advance.
Greetzzz,
CornElvis
Last edited: