Quick question:
I use Microsoft.VisualBasic.Interaction.InputBoxin my C # code so that users can add websites to the list, but I do not want them to enter an empty string, so I provide a popup with an error in case this happens. However, an error will also appear if the user clicks cancel, which I don’t want.
Reading the documentation on it says that clicking "cancel" returns an empty string, so it causes an error. Is there a way to determine if the user can click "okay" with an empty line or "cancel"?
Thanks in advance,
-Peter
source
share