Thursday, February 7, 2008

Serial Ports: Getting Port Names

string[] sp= SerialPort.GetPortNames();

           

            SerialPort sp1=new SerialPort(sp[0]);

           

            bool status =sp1.IsOpen;

 

No comments:

Post a Comment

Post your comments here: