Skip to content

Instantly share code, notes, and snippets.

@sadik-fattah
Created June 10, 2020 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sadik-fattah/cd6fb58ab6953e68b98a2002c4fd6dad to your computer and use it in GitHub Desktop.
Save sadik-fattah/cd6fb58ab6953e68b98a2002c4fd6dad to your computer and use it in GitHub Desktop.
Download from machine
'make form . 2 labels , 2 button the copyright if you wont do !!
put this code to button1 (get ip)
If TextBox1.Text = " " Then
MessageBox.Show("please Enter WebSite")
End If
Dim Hostname As IPHostEntry = Dns.GetHostEntry(TextBox1.Text)
Dim ip As IPAddress() = Hostname.AddressList
TextBox2.Text = ip(0).ToString
' put this code to clearer the textboxs
TextBox1.Clear()
TextBox2.Clear()
' if you ave webSite you can yous lablslinks
Dim url As String = "your webSite"
Process.Start(url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment