very simple user prompt

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to prompt the user with a very simple one input field dialog
box, without having to create a form. The perfect solution would be if the
MessageBox() had an option for an input field, and returned the field
contents.
Does anyone know if such a thing exists in .Net?
 
joe miller said:
I would like to prompt the user with a very simple one input field dialog
box, without having to create a form. The perfect solution would be if the
MessageBox() had an option for an input field, and returned the field
contents.

In VB.NET 2002/2003 you can use the 'InputBox'
('Microsoft.VisualBasic.Interaction.InputBox') function, however, it's not
possible to determine whether or not the user pressed the input dialog's
"Cancel" button. In VB 2005 'InputBox' will return 'Nothing' if the user
pressed "Cancel".
 
Back
Top