Click here to Skip to main content
15,887,585 members

Comments by Edgar105 (Top 1 by date)

Edgar105 18-Dec-15 13:09pm View    
for example:

if My.Computer.Network.IsAvailable() then
'do all your initialization and conection procedure, etc
else
'show a message to the user there is no connection
'don´t start the mysql connection so the program does not freeze catching the error trying to connect
MessageBox.show("An internet connection is required to continue")
end if