Display a dialogbox with a text input in C#
20,052
Solution 1
You can use the InputBox from VB6 by referencing the DLL. Here is a link on how to do this in C#:
http://www.codeproject.com/KB/edit/InputBox.aspx
Solution 2
There is no such a thing in C#. You have to create dialogbox with input on your own. Take a look here, there is a good example how to do that.
Solution 3
You can use Interaction.InputBox() method, which comes within Microsoft.VisualBasic namespace. You can use it in C# project by simply adding Microsoft.VisualBasic.dll assembly reference.
Author by
VisaMasterCard
Updated on May 12, 2020Comments
-
VisaMasterCard about 4 years
Possible Duplicate:
Which control to use for quick text input (inputbox)?I need to display a dialog box which contains an input text to let the user type something and press ok, so I can read the typed text and do other things.
Is there anyone who knows the name of it ?