Click here to Skip to main content
12,394,573 members (82,911 online)
Click here to Skip to main content

Stats

61.9K views
614 downloads
53 bookmarked
Posted

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

, 14 Jan 2009 CPOL
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
            components.Dispose()
        End If
        MyBase.Dispose(disposing)
    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.SuspendLayout()
        '
        'btnRegister
        '
        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
        '
        'Deregister
        '
        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
        '
        'Form1
        '
        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.Controls.Add(Me.Deregister)
        Me.Controls.Add(Me.btnRegister)
        Me.Name = "Form1"
        Me.Text = "Form1"
        Me.ResumeLayout(False)

    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.

License

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

Share

About the Author

Anil_gupta
Software Developer Microsoft India
India India
No Biography provided

You may also be interested in...

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