Detect ActiveSync connection

Discussion in 'Questions (Windows Mobile)' started by Lasse, Jul 24, 2008.

  1. Lasse

    Lasse Member Licensed User

    Hello...
    Does anyone know about this :

    Is it possible that the PDA automatically can show a specific form when the PDA connects to the PC ?

    Thanks

    Lasse
     
  2. manu

    manu Active Member Licensed User

    is very easy.

    you should use the library rapiDektop.dll and OpenNetCF

    rapi.New1
    ErrorLabel(errConexion)
    rapi.Connect
    Do Until rapi.IsConnected = true
    DoEvents
    If (Now - t)/cTicksPerSecond > 3 Then
    Msgbox("Cannot connect to device.")
    AppClose
    End If
    Loop

    Return
    errConexion:
    Msgbox("Error de conexion, persiste este error contacte con su distribuidor,"," Error de Conexión ")
    AppClose
     
  3. Lasse

    Lasse Member Licensed User

    Connection

    HI

    I meant to detect it on the device not from the desktop.:sign0085:
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice