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".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top