Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27020

Detect ActiveSync status

$
0
0
I use this code in VB6

Code:

Private Declare Function CeGetDeviceId Lib "ceutil" () As Long
Public Function getActivesyncStatus()
Select Case CeGetDeviceId()
Case 0
lblActivesyncStatus.Caption = " Please connect the device"
Case 1
lblActivesyncStatus.Caption = " Guest device connected"
Case Else
lblActivesyncStatus.Caption = " Device connected"
End Select
End Function
Private Sub Timer1_Timer()
Call getActivesyncStatus
End Sub

does anyone know how to do this in VB.net? Thanks!

Viewing all articles
Browse latest Browse all 27020

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>