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
 
Back
Top