I have a windows application form where an IP can be input in order to connect to MySQL database. The help I need is how to program, so that if input IP doesn’t exist or doesn’t respond my form should return a message and connect to default IP i.e., localhost.
Share
You could try something like this :
and here’s what the TryConnect function looks like :