Click here to Skip to main content
13,056,238 members (93,269 online)
Click here to Skip to main content


53 bookmarked
Posted 1 Nov 2006

Handling connection notification between a desktop machine and Windows CE based devices

, 14 Jan 2009
This article describes how to get notification when a Windows CE based device is connected or disconnected from a desktop machine.
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
    Inherits System.Windows.Forms.Form

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing AndAlso components IsNot Nothing Then
        End If
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.btnRegister = New System.Windows.Forms.Button
        Me.Deregister = New System.Windows.Forms.Button
        Me.btnRegister.Location = New System.Drawing.Point(43, 12)
        Me.btnRegister.Name = "btnRegister"
        Me.btnRegister.Size = New System.Drawing.Size(75, 23)
        Me.btnRegister.TabIndex = 0
        Me.btnRegister.Text = "Register"
        Me.btnRegister.UseVisualStyleBackColor = True
        Me.Deregister.Location = New System.Drawing.Point(172, 12)
        Me.Deregister.Name = "Deregister"
        Me.Deregister.Size = New System.Drawing.Size(75, 23)
        Me.Deregister.TabIndex = 1
        Me.Deregister.Text = "Deregister"
        Me.Deregister.UseVisualStyleBackColor = True
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(292, 50)
        Me.Name = "Form1"
        Me.Text = "Form1"

    End Sub
    Friend WithEvents btnRegister As System.Windows.Forms.Button
    Friend WithEvents Deregister As System.Windows.Forms.Button

End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer Microsoft India
India India
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170728.2 | Last Updated 15 Jan 2009
Article Copyright 2006 by Anil_gupta
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid