PDA

View Full Version : Data Exchange with VB.NET



ctrlBuff
02-13-2010, 11:44 PM
I found an·article in Nuts & Volts, Sept, 2002 by Jon Williams.
·
http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/vol3/col/nv89.pdf

The article explains how to interface a BS2 with a PC to exchange data. The visual basic code was written for VB6. I would like to write the vb code for VB.NET Express 2008.
The section of VB6 code I am most having trouble with is:



Private Sub FlushTxBuf()
Do
DoEvents
Loop Until (MSComm1.OutBufferCount = 0)
End Sub

I don't know what "DoEvents" is or how to make VB.NET immitate the Sub. Can anyone help me with this?

Unsoundcode
02-14-2010, 07:04 AM
Hi , check out the following link for a few helpful hints.

http://forums.parallax.com/showthread.php?p=671804

Jeff T.