title: Using the SysInfo control in VB6 to detect when a USB device has been plugged/unplugged
body: <p>I have added a SysInfo control to my form and, to test, am trying to produce a text message when a USB card reader is plugged or unplugged.</p>
  
  <pre><code>Private Sub SysInfo1_ConfigChanged(ByVal OldConfigNum As Long, ByVal NewConfigNum As Long)
  
      ShowText "The system configuration has changed"
  
  End Sub
  </code></pre>
  
  <p>I have tried a similar test message with the DisplayChanged event and successfully receive that message when the monitor resolution is altered, but I can't for the life of me get the above to work. I was under the impression that the ConfigChanged event should occur when a USB device is added/removed. I am including the SysInfo.ocx with the application and testing on a Vista machine. Thanks</p>