On my login form I have a timer and every tick I run this piece of code:
Try Client.Connect(IpAddress, Port) Catch ex As SocketException End Try
and update a label to whether the server is online or offline. However when the server if offline it throws a exception error which makes the form unresponsive for a small amount of time. So my question is, is there a way to stop this?
Any help with this would be much appreciated,