Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Getting more information about a serial port in C#
 

Getting more information about a serial port in C#

In Device Manager there are descriptions of the PC's serial ports with the port number in parenthesis. I would like access to these descriptions in C#. For Example my application uses a USB to Serial Adapter. Device manager reports it as "USB Serial Port (COM1)". Using the System.IO.SerialPort.GetPortNames() only returns the information in parenthesis. Is there any way to get the information before that i.e. "USB Serial Port"?

Thanks
Wayne

Ravenb  Sunday, April 19, 2009 2:09 PM
Hi Ravenb,

We can't get the information through the SerialPort type. I don't know why you need this info in your application. However, there's a solved thread with the same question as you. You can check out the code there, and see if it can help you.

If you have any further problem, please feel free to let me know.

Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Wednesday, April 22, 2009 6:28 AM
Hi Ravenb,

We can't get the information through the SerialPort type. I don't know why you need this info in your application. However, there's a solved thread with the same question as you. You can check out the code there, and see if it can help you.

If you have any further problem, please feel free to let me know.

Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Wednesday, April 22, 2009 6:28 AM

You can use google to search for other answers

Custom Search

More Threads

• BackgroundImage Property (Forms) won't work!
• Dynamic Property
• PROBLEM: ParentControlDesigner.AllowSetChildIndexOnDrop internal?
• Forms Designer Errors
• Control grouping frames
• ToolStripPanel
• Frames on top of each other
• Get All TimeZone And Language
• Visual Studio is not adding a .resx with a form...
• Transparent TabControl