Powered by phpBB® Forum Software |
My.Computer.Ports
to show the available serial ports of the computer in Visual Basic.My.Computer.Ports.SerialPortNames
property returns. These strings are the names of the available serial ports on the computer.Imports
statement if you are not fully qualifying member names in your code. For more information, see Imports Statement (.NET Namespace and Type).ListBox1
.My.Computer.Ports.SerialPortNames
may be incorrect when run on Windows 98. To prevent application errors, use exception handling, such as the Try...Catch...Finally
statement or the Using
statement, when using the port names to open ports.