Simple User Input dialog for strings?

  • Thread starter Thread starter Derrick
  • Start date Start date
D

Derrick

Is there a common input dialog to get a string from a user? I see
MessageBox, but no overload looks like it can make the mb prompt for a
string, just buttons?

Thanks in advance!

Derrick
 
Derrick,

There non, unless you do not mind referencing the Microsoft.VisualBasic
assembly and use the InputBox class. Other than that, you could make a
simple
form with a Ok and Cancel buttons and a Textbox and open it as a modal form
from your main form (or non-modal if you prefer). Should not take you more
then
a couple of minutes.

NOTE: The InputBox does support localization for the names on the buttons
and
textbox.

HTH,

//Andreas
 

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