CFanatic

Go Back   CFanatic > Programming > C# Programming

Join CFanatic Forum Now

SerialPort.GetPortNames() topic posted under C# Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 09-04-2010, 09:51 PM
Junior Member
 
Join Date: Sep 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Fritz.fx is on a distinguished road
| More
SerialPort.GetPortNames()

Hi all. I'm using this seemingly simple code (from msdn) to fill a combobox with available Com ports but it keeps adding this strange character at the end of it, like so "COM4?"

It was working fine yesterday, but it started doing it after a reboot and no change to the code.

foreach (string s in System.IO.Ports.SerialPort.GetPortNames())
Combobox1.Items.Add(s);
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 02:47 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board