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

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -