Click here to Skip to main content
15,887,083 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
how to recieve data via com port
Posted
Comments
ZurdoDev 12-Mar-12 12:53pm    
You need to do some reading on msdn.microsoft.com and not post all of your very generic questions here.
nevin pillai 12-Mar-12 13:12pm    
ok then man give me help on this question....
how to show a video feed captured from a device connected via com port ???

1 solution

In order to access comport you need to have namespace
using System.IO.Ports;
then in button click event write this
{
then need to create an object for serial port like this
C#
SerialPort obj = new SerialPort("COM1");//But be shore that the bardrate matches between hardware and computer system
            obj.Open();
string a = obj.ReadExisting();
            obj.Close();
MessageBox.Show(a);


}


Hope this may help you
 
Share this answer
 
Comments
nevin pillai 12-Mar-12 14:35pm    
no man im sorry man

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900