07-07-14, 01:17 AM
السلام عليكم كيف عمل Start / Pause / Stop
فى الفورم
انا مستخدم كود التاكد من الاتصال بالانترنت هالكود
اريد لو النت قطع يعمل توقف بدل خروج ولو النت اشغل يرجع يكمل
فى الفورم
انا مستخدم كود التاكد من الاتصال بالانترنت هالكود
PHP كود :
If My.Computer.Network.IsAvailable Then
frmMain.Show() 'shows my application's main form
Me.Hide()
Else
'if no connection then
Dim result = MsgBox("Failed to establish connection!") ' show an error message
If result = DialogResult.OK Then 'if button okay is pressed
Application.Exit() 'exit the application!
End If
End If