troubleshooting Question

Updating a label on a form when serial port data is recieved

Avatar of BenthamLtd
BenthamLtd asked on
ProgrammingVisual Basic Classic
10 Comments1 Solution568 ViewsLast Modified:
I have a simple form with a single label. I want to change the text of that label to display the data that has been received from the serial port. I have looked at various posts on the internet that talk of using invoke and delegates but I'm struggling to understand how they work.

I want to display the data as soon as its received with no button pushes etc.. I was looking at using the DataReceived function but i keep getting cross thread errors. I've tried reading up on it but to be honest I get lost. I've used vb 6 quite a lot and to be honest it looks a  lot simpler in that. Unfortunately I have to use .net.

Any ideas on how to solve this or a simple idiots guide to the invoke and delegate functions?

Many thanks
ASKER CERTIFIED SOLUTION
Randy Poole

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros