C# Class ZForge.Win32.RemovableDetectorForm

Hidden Form which we use to receive Windows messages about flash drives
Inheritance: System.Windows.Forms.Form
Datei anzeigen Open project: zhuangyy/Motion Class Usage Examples

Public Methods

Method Description
RemovableDetectorForm ( RemovableDriveDetector detector ) : System

Set up the hidden form.

Protected Methods

Method Description
WndProc ( Message &m ) : void

This function receives all the windows messages for this window (form). We call the DriveDetector from here so that is can pick up the messages about drives arrived and removed.

Private Methods

Method Description
Form_Activated ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void
Load_Form ( object sender, EventArgs e ) : void

Method Details

RemovableDetectorForm() public method

Set up the hidden form.
public RemovableDetectorForm ( RemovableDriveDetector detector ) : System
detector RemovableDriveDetector DriveDetector object which will receive notification about USB drives, see WndProc
return System

WndProc() protected method

This function receives all the windows messages for this window (form). We call the DriveDetector from here so that is can pick up the messages about drives arrived and removed.
protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message
return void