Click here to Skip to main content
15,900,818 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
I have a barcode reader device where I connect it to my pc via USB. How to get the port number by code?

1 solution

Share this answer
[no name] 13-Dec-13 8:49am    
What is the declaration of ManagementObjectSearcher & ManagementObject? I Imported System.Management but didn't work.
[no name] 13-Dec-13 9:10am    
OK I add reference to system.Management from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

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