public AdapterUSB() { device = new GenericHIDDevice(5824, 1503); device.Connected += OnConnected; device.Disconnected += OnDisconnected; frm = new MsgDispatcher(device); frm.WindowState = FormWindowState.Minimized; frm.Show(); frm.Hide(); }