There seems to be a problem with the
InputBox that Microsoft gives us for backwards compatibility. In VB6, if the user clicked cancel, it used to give back a string with a 0 pointer. Now it gives back String.Empty. Unfortunately this is ambiguous with the user clearing the text and clicking OK.
In VB6 you used to be able to do this;
Dim input as String
input = InputBox("Enter some text, or else")
If StrPtr(input) = 0 Then
Msgbox("You clicked cancel.")
End If
Is there any way in .Net to duplicate this behavior? Our program logic depends on being able to differentiate between a Cancel and an OK with blank text. I would prefer not to have to write my own input dialog, but may have to if there is no other solution.
Collin Sauve