Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am writing a application in C# using a serial port.Now,i wanna detect a device usb-com which plug/unlug.What must i do?Thanks
Posted

 
Share this answer
 
Comments
congtk88 4-Jun-12 11:30am    
I am using Visual Studio 2008.I read your instruction and followed it.But i can not use it.My VS2008 does not contain object "WqlEventQuery,ManagementScope,ManagementEventWatcher".Can you help me?Thanks
Zoltán Zörgő 4-Jun-12 14:28pm    
You should add a reference to: System.Management from the .net page.
congtk88 5-Jun-12 11:49am    
I have add it,but it does not work.Thanks!
Zoltán Zörgő 5-Jun-12 14:32pm    
Than this topic is solved, right? :)
congtk88 13-Jun-12 3:52am    
I can't solve it.Thanks!
 
Share this answer
 
Comments
congtk88 4-Jun-12 11:33am    
I am using Visual Studio 2008.I read your instruction and followed it.But i can not use it.My VS2008 does not contain object "ManagementObjectSearcher".Can you help me?Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900