How to check if COM port exist before opening connection in Visual C# -


i need check if selected com port exist before conecting (it gives error) i'm using visual studio express 2013 c#. or, there way hide error?

thanks.. ~richard

i'd use system.io.ports.serialport.getportnames - returns array of valid serial port names can opened.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -