Hi

I am trying to make a program the will monitor if the certain variable changes.

lets say if the default value is 0, the program will just listen, but when the value changes to 1. something will happen.

here is what i have thought
Code:
Do Until Exit_button is clicked

If val != 0 Then
   Execute Statement
End if

Loop
how can i do this? in VB.net if its just that, the program wont let me do anything. since it is busy with the endless loop.

thanks