I am writing a VB .Net App (Not ASP .Net) where I'm having an issue creating
a cancel button...
I have a situation where I have a loop that is initiated when the user
clicks on a Run button. I would like to have a Cancel button that when the
user clicks it a message button a messagebox will be displayed asking if
they would like to cancel or not...if they select yes I would like to break
out of the loop but not quit the application.
Basically I have it setup that a global variable called bRunApp = True and
when the button is clicked it changes the bRunApp value = False. in the
loop there is a check for the value;
if bRunApp = False Then
'display messagebox and breakout of the loop
EndIf
How would I do this?
a cancel button...
I have a situation where I have a loop that is initiated when the user
clicks on a Run button. I would like to have a Cancel button that when the
user clicks it a message button a messagebox will be displayed asking if
they would like to cancel or not...if they select yes I would like to break
out of the loop but not quit the application.
Basically I have it setup that a global variable called bRunApp = True and
when the button is clicked it changes the bRunApp value = False. in the
loop there is a check for the value;
if bRunApp = False Then
'display messagebox and breakout of the loop
EndIf
How would I do this?
Comment