/// <summary> /// The easiest way to use DriveDetector. /// It will create hidden form for processing Windows messages about USB drives /// You do not need to override WndProc in your form. /// </summary> public RemovableDriveDetector() { RemovableDetectorForm frm = new RemovableDetectorForm(this); frm.Show(); // will be hidden immediatelly Init(frm, null); }