I'm very new to Visual Basic, and have just installed VB Express 2008 from a Sams book titled, "Teach Yourself Visual Basic 2008 in 24 Hours", by James Foxall. I've managed to make it through most of the book, which was very helpful in getting a quick jump start, but I find that I am still "not quite getting it" yet.
I've written a program that has a "Start" and "Stop" button which are suppose to control the logging of data through a serial port. When I click the Start button, the serial port gets initialized, opened, and then I go into a Do-Loop-Until loop to process the incoming data stream, and that is suppose to stop when the Stop button is pressed. However, I haven't figured out how to implement that.
I assume the code should look something like the following:
I probably have to use the 'e' parameter, but I haven't been able to come up with the proper syntax. Of course, the problem may be more fundamental than the just the syntax....
Any assistance would be appreciated,
Jonathan
I've written a program that has a "Start" and "Stop" button which are suppose to control the logging of data through a serial port. When I click the Start button, the serial port gets initialized, opened, and then I go into a Do-Loop-Until loop to process the incoming data stream, and that is suppose to stop when the Stop button is pressed. However, I haven't figured out how to implement that.
I assume the code should look something like the following:
VB.NET:
Private Sub btnStart_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles btnStart.Click
... initializing set up code here
Do
... serial port processing code here
Loop Until btnStop.IsPressed
I probably have to use the 'e' parameter, but I haven't been able to come up with the proper syntax. Of course, the problem may be more fundamental than the just the syntax....
Any assistance would be appreciated,
Jonathan