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
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jagjit Saini
NA
166
0
List of Com Ports
Oct 4 2011 3:06 AM
Hi
using system.io.ports
string[] ports = SerialPort.GetPortNames();
var sortedList = ports.OrderBy(port => Convert.ToInt32(port.Replace("COM", string.Empty)));
foreach(string port in ports)
{
DrpPort.Items.Add(port);
DrpPort.DataBind();
}
It is not displaying anything in Drop-Down , it is not going in loop.
Thanks
Reply
Answers (
3
)
Threading
Need disabled check box cell in c# winforms