Available COM Ports on Pocket PC (C#)

K

Khalid

Hi all.
There is any way to know what are COM ports available/active on Pocket
PC throught C# Compact Framework?
And if possible also the name of the card/program that use these
ports.
Thank you very much
 
G

Guest

If you have the compact framework 2.0 it is a simple task:
use the following code

string[] ports= System.IO.Ports.SerialPort.GetPortNames();
string serial = "";
for (int i = 0; i < ports.Length; i++)
{
serial = serial + " " + ports + " ";
}

for the second question ,which program is using a port ..i don't know an
answer:
if you find a solution please tell me it , because it could be useful
 
S

Sheikko

If you have the compact framework 2.0 it is a simple task:
use the following code

string[] ports= System.IO.Ports.SerialPort.GetPortNames();
string serial = "";
for (int i = 0; i < ports.Length; i++)
{
serial = serial + " " + ports + " ";
}

for the second question ,which program is using a port ..i don't know an
answer:
if you find a solution please tell me it , because it could be useful

Khalid said:
Hi all.
There is any way to know what are COM ports available/active on Pocket
PC throught C# Compact Framework?
And if possible also the name of the card/program that use these
ports.
Thank you very much


thank you very much. I will try it
 
S

Sheikko

If you have the compact framework 2.0 it is a simple task:
use the following code

string[] ports= System.IO.Ports.SerialPort.GetPortNames();
string serial = "";
for (int i = 0; i < ports.Length; i++)
{
serial = serial + " " + ports + " ";
}

for the second question ,which program is using a port ..i don't know an
answer:
if you find a solution please tell me it , because it could be useful

Khalid said:
Hi all.
There is any way to know what are COM ports available/active on Pocket
PC throught C# Compact Framework?
And if possible also the name of the card/program that use these
ports.
Thank you very much


thsnk you. I will try it
 
S

Sheikko

If you have the compact framework 2.0 it is a simple task:
use the following code
string[] ports= System.IO.Ports.SerialPort.GetPortNames();
string serial = "";
for (int i = 0; i < ports.Length; i++)
{
serial = serial + " " + ports + " ";
}

for the second question ,which program is using a port ..i don't know an
answer:
if you find a solution please tell me it , because it could be useful

thsnk you. I will try it


than kyou. It work pwerfectly. When I insert a card it show me the
availablwe com ports.

If I will found a response for my second question I will send it to
you.
 
G

Guest

happy to help you, i hope you can find the answer for the second question ,
it cold be very useful..

Sheikko said:
If you have the compact framework 2.0 it is a simple task:
use the following code
string[] ports= System.IO.Ports.SerialPort.GetPortNames();
string serial = "";
for (int i = 0; i < ports.Length; i++)
{
serial = serial + " " + ports + " ";
}

for the second question ,which program is using a port ..i don't know an
answer:
if you find a solution please tell me it , because it could be useful
:
Hi all.
There is any way to know what are COM ports available/active on Pocket
PC throught C# Compact Framework?
And if possible also the name of the card/program that use these
ports.
Thank you very much

thsnk you. I will try it


than kyou. It work pwerfectly. When I insert a card it show me the
availablwe com ports.

If I will found a response for my second question I will send it to
you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top