I'm in C#/.NET here for the first time and I'm trying to force my program to wait for a button's click (okbutton event Click). I don't want the program going anywhere until the user clicks that OK button.
I can't find any method, and since the event returns a void, I have no way of tracking a bool value...aiee!
Oh, and I don't want to use a MessageBox, please :)
Question
Gbreader
Hi folks, any help is appreciated
I'm in C#/.NET here for the first time and I'm trying to force my program to wait for a button's click (okbutton event Click). I don't want the program going anywhere until the user clicks that OK button.
I can't find any method, and since the event returns a void, I have no way of tracking a bool value...aiee!
Oh, and I don't want to use a MessageBox, please :)
Thanks in advance!
Link to comment
https://www.neowin.net/forum/topic/444311-c-waiting-for-a-click-event/Share on other sites
9 answers to this question
Recommended Posts