steve highett

steve highett

  • NA
  • 2
  • 6.3k

USB Detection and removal C# wpf

Oct 12 2015 1:54 AM
I'm creating a WPF C# application and apart of the program i want to add is where upon start up of application the application check if a specific usb is connected if so it allows interaction with the UI if not then the UI cannot be interacted till the usb is connected and if at any time the usb is removed the UI locks any interaction with the user till the usb is reconnected 
 
the only problem ive so far to implanting this is that all usb detection code or methods are either outdated and useless or not what i need 
 
All i need is for the application to detect when a specific usb is attached and removed i don't need notifications  or anything like that just for the application to know and act according  to  if its connected or not
 
any help will be greatly appreciated

Answers (1)