how to pause VB.net code until the user clicks a button
I want my code to pause while the user makes a decision on the form by clicking a button on the form. How would I go about doing this. I have tried using Doevents with a do unitl loop with a booolean varible but the code doesnt start up when I click the button and change the boolean to true?
any help?
Do
Application.DoEvents()
Loop Until choice_Made = True