I am using input box to take a string value from user, and assigning it to a string variable. But How can I know that a user has pressed OK or Cancel. If the user presses the canel button, the partial default string shown in the textbox of the inputbox is accepted as a valid input which it shouldn't.
HOw can I detect OK & Cancel Buttons?