Hi all,
I have a device which is connected to my system com port1 and when i
swipe bar code card like our office access card its having a number and
that swiping machine will pass that number, then i need to catch that
number and then i need to write some code to accept/deny that card.
could any one give me some suggestions to read that number and how to contact with com port1 in dot net..
thank you...
Com port 1 programming
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Bechir BejaouiRank #144 · 15.9K reputationPosted Dec 10, 2008, 3:26 AM EST
to set com parameters use
comport.BaudRate, comport.DataBits ,comport.StopBits ,comport.Parity ,comport.PortName ,comport.ReadTimeout
to open it make use
comport.Open();
to read data from it use
comport.ReadExisting()