[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

cancel the datareceived event of serial port in c#

Posted on 2011-10-15
1
Medium Priority
?
714 Views
Last Modified: 2012-05-12
I am using the serialport control in c# 2008 and using the datareceived event to read any data comming from the control.  How can I cancel the datareceived event?  If I am receiving a large amount of data and need to close the port, I want to stop receiving data before I call the serialport1.close() method, so the gui won't lock up.
0
Comment
Question by:dhenderson12
1 Comment
 
LVL 12

Accepted Solution

by:
Ramkisan Jagtap earned 2000 total points
ID: 36977963
Please read following article....
http://www.codeproject.com/KB/system/SerialPorts.aspx

0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Integration Management Part 2
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question