Author Topic: OnDeviceChange not being called  (Read 14591 times)

theoracle39

  • Member
  • ***
  • Posts: 8
OnDeviceChange not being called
« on: September 29, 2010, 10:24:34 am »
I took the generic_hid.vb code for VB.NET and modified it to work with my own application.  If I start my program with the device plugged in and then unplug it, then the WndProc sub is called because of the device change and then OnDeviceChange is called.  However, if the device is initially unplugged when I start the program, then if I plug in the device the WndProc sub is never called and therefore OnDeviceChange isn't called either.  I can't figure out what I changed that could affect the operation of WndProc.  Any ideas?