Hidden Form which we use to receive Windows messages about flash drives
Inheritance: System.Windows.Forms.Form
Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
 /// <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);
 }