TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Identify the Available Serial Port on the PC using C#
Carmelo La Monica
Apr 25
2015
Code
1.2
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
C# Identify the Avai
private
void
BtnFindSerialPort_Click(
object
sender, EventArgs e)
{
foreach
(
string
ports
in
System.IO.Ports.SerialPort.GetPortNames())
{
MessageBox.Show(
"Serial port avialible"
+
" "
+ ports);
}
}
C#
PC Serial Port