J
Jeremy Wood
Hello everyone;
I'm kind of new to VB and I am currently reading "Microsoft Visual Basic
..NET Step by Step" by Michael Halvorson. It's a great book and has been
very easy to read. The last time I did anything in VB was back in 1996 when
I was in college. (Wow has it been that long...)
Anyways, I apologize if this is such a n00b question.
I have a while loop that is reading data and writing to a file via
StreamWriter. This while loop is to continue until a variable changes from
1 to, well, anything else actually. On my form I have a start and stop
button for this action. The start button sets said variable to 1 and then
executes the while loop gathering data and writing it to file. The stop
button simply sets the aforementioned variable to 0. However, once the
while loop starts it never gives control back. You never have a chance to
hit the stop button! I end up having to kill the program. I'm sure this is
something stupid. What am I doing wrong?
Jeremy
VB .n00b
I'm kind of new to VB and I am currently reading "Microsoft Visual Basic
..NET Step by Step" by Michael Halvorson. It's a great book and has been
very easy to read. The last time I did anything in VB was back in 1996 when
I was in college. (Wow has it been that long...)
Anyways, I apologize if this is such a n00b question.
I have a while loop that is reading data and writing to a file via
StreamWriter. This while loop is to continue until a variable changes from
1 to, well, anything else actually. On my form I have a start and stop
button for this action. The start button sets said variable to 1 and then
executes the while loop gathering data and writing it to file. The stop
button simply sets the aforementioned variable to 0. However, once the
while loop starts it never gives control back. You never have a chance to
hit the stop button! I end up having to kill the program. I'm sure this is
something stupid. What am I doing wrong?
Jeremy
VB .n00b