I'm using an InputBox from the Visual Basic Library and I need to determine which button has been selected by the end user. With the InputBox you can only grab the Entered Value by the user, I also need to detect if they hit Ok or Cancel.
Has anyone tried doing this before?
I know I could create a new form and do it that way, but wondering there's a workaround for this??
string answer = Interaction.InputBox("Question","Title","");
I can determine if the user has input anything by the answer.length, but I need to know whether they hit "Cancel" or "Ok" after typing something as I need to abort on "Cancel".