No offence, but why make a program when you can just go to that website and find out quickly?
Another old video... Another easy code.
How to check the website status.
No offence, but why make a program when you can just go to that website and find out quickly?
Last edited by Raydenman; 12-25-2014 at 12:16 PM.
First we need to import the namespaces:
Imports System.Net
Button1:
MsgBox(getStatus(TextBox1.Text), MsgBoxStyle.Information, "Information")
Under button1 code:
Function getStatus(ByVal input As String) As String
Try
Dim webclient As String = New System.Net.WebClient().DownloadString("https://isup.me/" + input)
If webclient.ToLower.Contains("is up") Then
Return "Website online"
ElseIf webclient.ToLower.Contains("looks down from here") Then
Return "Website offline"
ElseIf webclient.ToLower.Contains("huh?") Then
Return "Unknown website"
Else
Return "Error"
End If
Catch excez As Exception
Return "Error: " & vbCrLf & excez.ToString
End Try
End Function
https://gyazo.com/5640e840b7e2905f85f76572b19b991a
I don't have used themes on these projects, it is just a Windows Theme
Sasuke Uchiha! (12-25-2014)