By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,204 Members | 1,360 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,204 IT Pros & Developers. It's quick & easy.

Read/Write on USB Port using C#

P: 1
I want to read/write on USB port using C# with out using any third party software means directly using .NET 2005. Is that any way to do so??
Any input will be appreciated!!
Thanks in Advance

Thanks & Regards
Rajendra Singh
Apr 25 '07 #1
Share this Question
Share on Google+
4 Replies


P: 4
I want to read/write on USB port using C# with out using any third party software means directly using .NET 2005. Is that any way to do so??
Any input will be appreciated!!
Thanks in Advance

Thanks & Regards
Rajendra Singh

Hi,

You can use

My.Computer.Ports

For reading and writing in serial Ports.

See the below link , it is in VB 2005 you can convert it to C #.

http://support.microsoft.com/kb/904795/

Thanks & Regards

Vimal Raj
Apr 25 '07 #2

Motoma
Expert 2.5K+
P: 3,235
You will need to create a System.IO.Ports.SerialPort. I don't know much more than that.
Apr 25 '07 #3

100+
P: 366
Hello

i can give you idea and as well as sample code for serialcommunication using rs232 but no particular idea of using USB ports ,

more over what type of data you are going to read or write ,and what type of device you are going to connect.
Apr 26 '07 #4

P: 1
I want to read/write on USB port using C# with out using any third party software means directly using .NET 2005. Is that any way to do so??
Any input will be appreciated!!
Thanks in Advance

Thanks & Regards
Rajendra Singh

hi well im trying what your tying as well but still nothing yet i was trying to read and write on the rs232 port however my method uses bioscom and my BCC5.5 borland keeping issueing an error that it cannot include bios.h did u check or receive any help bwt this subject if yes please reply to my email mohammad.merashly@lau.edu.lb thank you
regards
merashly
Oct 4 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.