Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2008 > C# 2008 aka C# 3.0
|
C# 2008 aka C# 3.0 Discuss the Visual C# 2008 (aka C# 3.0) language
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2008 aka C# 3.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 30th, 2009, 03:57 AM
Registered User
 
Join Date: Dec 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Post How to get Port Name and Port details

Hello Friends,

I am working C# one project.
In this project I am using one hardware device for some process and it's connected with COM port.
My question is How I can get device connected port name using C# code?
or I just want to show this COM (eg - COM1,COM2,COM3,COM4)port connect my device.

How I can retrieve COM PORT NAME????????

I am trying lot of thing but i didn't get any output
Please Help me.

Thanks & Regards
RKB
 
Old December 30th, 2009, 05:43 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

I've never done anything with serial ports, but you might want to look at the SerialPort class, specifically the GetPortNames method.

http://msdn.microsoft.com/en-us/libr...erialport.aspx
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get Port Name and Port details [email protected] BOOK: Professional C#, 2nd and 3rd Editions 0 December 30th, 2009 03:55 AM
Serial Port johnjohn Classic ASP Databases 1 November 16th, 2004 03:08 AM
Usb Port? dedex C# 1 November 9th, 2004 06:14 AM
Port Scanner jstatum Java GUI 1 October 22nd, 2004 08:52 AM
Serial Port In C NET4JAGMOHAN C++ Programming 1 January 30th, 2004 07:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.