コード例 #1
0
 protected override void WndProc(ref Message m)
 {
     if (m.Msg == WM_DEVICECHANGE)
     {
         USB.OnDeviceChange(m);
         if (USB.AttachedState == true)
         {
             EnableButtons();
         }
         else
         {
             DisableButtons();
         }
     }
     base.WndProc(ref m);
 }