What control is used to quickly enter text (input)?

I need a quick text input dialog box (MessageBox with one text field in it). Is any control available or should I use a form?

I just want the user to enter some ID. And in another case, I want 2 texboxes for username and password.

+5
source share
2 answers

Microsoft.VisualBasic.dll has an InputBox method that you can use with C # to get a single line.

For example (first add a link to Microsoft.VisualBasic.dll)

using Microsoft.VisualBasic;

string response = Interaction.InputBox("Enter a string:", "MyApp", "DefaultString", 0, 0);

.

+8

-

0

All Articles