Can anyone kindly let me know how to put codes in my program to check if the network card is currently connects to nowhere (in nortification area, the small computer icon is crossed in red). Many thanks!
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim bNetworkCablePlugged As Boolean = True
Catch ex As Exception
If Err.Number = 5 Then
bNetworkCablePlugged = False
If the control goes inside the catch block,then the network cable is unplugged..Note that the error number is 5 only...for netwrok...
Private Sub MyApplication_NetworkAvailabilityChanged(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.Devices.NetworkAvailableEventArgs) Handles Me.NetworkAvailabilityChanged
If e.IsNetworkAvailable Then
MsgBox("Yippiiee we r online")
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.
OK, so HostGator for some reason no longer allows gcc/g++ access unless you have a Designated Server account, which is a lot of money to spend just to compile my "Hello World" program. Thus I figured I'd compile at home, then upload. Program is your regular old bare-bones Hello World ...