Click here to Skip to main content
15,906,567 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to get out from the outer for Pin
Simon P Stevens17-Mar-09 1:30
Simon P Stevens17-Mar-09 1:30 
GeneralRe: how to get out from the outer for Pin
Xmen Real 17-Mar-09 2:46
professional Xmen Real 17-Mar-09 2:46 
GeneralRe: how to get out from the outer for Pin
Pete O'Hanlon17-Mar-09 2:57
mvePete O'Hanlon17-Mar-09 2:57 
GeneralRe: how to get out from the outer for Pin
Xmen Real 17-Mar-09 3:00
professional Xmen Real 17-Mar-09 3:00 
GeneralRe: how to get out from the outer for Pin
Pete O'Hanlon17-Mar-09 3:29
mvePete O'Hanlon17-Mar-09 3:29 
GeneralRe: how to get out from the outer for Pin
Xmen Real 17-Mar-09 3:35
professional Xmen Real 17-Mar-09 3:35 
GeneralRe: how to get out from the outer for Pin
Pete O'Hanlon17-Mar-09 3:42
mvePete O'Hanlon17-Mar-09 3:42 
GeneralRe: how to get out from the outer for Pin
Eddy Vluggen17-Mar-09 6:04
professionalEddy Vluggen17-Mar-09 6:04 
Questionhow can i change the sample rate and sample size of wave files Pin
ahmedhassan9617-Mar-09 0:12
ahmedhassan9617-Mar-09 0:12 
QuestionVS 2008 - Setup project: Change Link Icon in Program Menu Pin
dj_jeff17-Mar-09 0:10
dj_jeff17-Mar-09 0:10 
Questionhow to catch these events? Pin
abhiram_nayan17-Mar-09 0:01
abhiram_nayan17-Mar-09 0:01 
AnswerRe: how to catch these events? Pin
Eddy Vluggen17-Mar-09 0:50
professionalEddy Vluggen17-Mar-09 0:50 
GeneralRe: how to catch these events? Pin
abhiram_nayan17-Mar-09 1:02
abhiram_nayan17-Mar-09 1:02 
GeneralRe: how to catch these events? Pin
Eddy Vluggen17-Mar-09 1:41
professionalEddy Vluggen17-Mar-09 1:41 
QuestionWhat's name of this code ? Pin
Mohammad Dayyan16-Mar-09 23:28
Mohammad Dayyan16-Mar-09 23:28 
AnswerRe: What's name of this code ? Pin
DaveyM6916-Mar-09 23:30
professionalDaveyM6916-Mar-09 23:30 
Questionopenfiledialog Pin
abu anas alazuneh16-Mar-09 23:06
abu anas alazuneh16-Mar-09 23:06 
AnswerRe: openfiledialog Pin
SeMartens16-Mar-09 23:07
SeMartens16-Mar-09 23:07 
AnswerRe: openfiledialog Pin
Christian Graus16-Mar-09 23:08
protectorChristian Graus16-Mar-09 23:08 
AnswerRe: openfiledialog Pin
iamalik16-Mar-09 23:31
professionaliamalik16-Mar-09 23:31 
AnswerRe: openfiledialog Pin
Xmen Real 17-Mar-09 0:00
professional Xmen Real 17-Mar-09 0:00 
QuestionHow to get "Name" or any ther property of the virtual SerialPort Pin
Suun16-Mar-09 22:18
Suun16-Mar-09 22:18 
In my DeviceManager i can see 3xCOM port installed. Only one of them is physical port - 2 other are virtual. When I list them:
 string[] portNames = SerialPort.GetPortNames();<br />
<br />
            foreach (string port in portNames)<br />
            {<br />
                listBox1.Items.Add(port);<br />
            }<br />

I get: COM1, COM2, COM3. It tells me nothing - only that 3 ports are installed in my computer. Other way is to use WMI. It works perfectly for physical ports.
<br />
SelectQuery query = new SelectQuery("select * from Win32_SerialPort");<br />
<br />
ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);<br />
<br />
ManagementObjectCollection collection = searcher.Get();<br />
<br />
foreach (ManagementObject port in collection)<br />
{<br />
listBox2.Items.Add(port["Name"].ToString());<br />
}<br />


That way i get only "Name" (Communication Port) of the physical COM port but no virtual ports are listed.
My question is: How to get property "Name" or any other of the virtual serial ports.
Thanks in advance
ps. Sorry for my bad english :]
AnswerRe: How to get "Name" or any ther property of the virtual SerialPort Pin
Christian Graus16-Mar-09 22:52
protectorChristian Graus16-Mar-09 22:52 
AnswerRe: How to get "Name" or any ther property of the virtual SerialPort Pin
Xmen Real 16-Mar-09 22:57
professional Xmen Real 16-Mar-09 22:57 
Questionupload excel from local drive Pin
Mangesh Tomar16-Mar-09 22:17
Mangesh Tomar16-Mar-09 22:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.