MSCOMM component

tucker101uk

New member
Joined
Feb 28, 2005
Messages
2
Programming Experience
Beginner
Hi,

You have all prob heard this loads before, but im struggling with the MSCOMM component in vb.net.

Im a relatively new programmer, but i understand the basics.

My task is to write a program to capture ASCII data from the comport and put it on the screen. At the moment im struggling pretty badly! I have been able to get the comEvRecieve to work, and run a case statement, but this is where it goes wrong.

I cannot get the ascii to display on the screen - I use

txtbox1.text = timestring & " - " & txtbox1.text & RXmessage & VbCrLf

However it comes up as

hh/mm/ss -

then a few seconds later another line. So it is working when a com event is recieved, but it isnt displaying the data...

Anybody got any ideas or code that i can pinch!?

Please help - would be much appreciated!!
Cheers - Tom
 

malitice

Active member
Joined
Feb 20, 2005
Messages
41
Programming Experience
1-3
If you are using it in a loop so it adds one line or piece of data at a time you need to use "&=" instead of "=".
 
Top Bottom