Write the reason you're deleting this FAQ
Check website Online/ Down coded in Visual Studio (vb.net)
This software will check if website is Online or Down. Set url to text box and click check website.
First we need to add the following components from the toolbox to the form:
- 1 Label
- 1 Textbox
- 1 Button
Change
Label1 text to “
URL”
Change
Button1 text to “
Check Website”
And it should look like this
After adding all components to the form, double click to button1(
Check Website) and add the following code :
Try
If My.Computer.Network.Ping(TextBox1.Text) Then
MsgBox(TextBox1.Text & " is Online ", MsgBoxStyle.Information, "Info")
Else
MsgBox(TextBox1.Text & " is Offline ", MsgBoxStyle.Information, "Info")
End If
Catch ex As Exception
MsgBox(TextBox1.Text & " is Offline ", MsgBoxStyle.Information, "Info")
End Try
Then click "
Start" to run the software
Software In Action....
Happy Coding