Input Box

  • Thread starter Thread starter BVM
  • Start date Start date
B

BVM

Hi,

C# has MessageBox which is convenient to use. Does C# has Input Box? Even though it's easy to create, if there is one in C#, why shouldn't I use it.

Thanks,

Dennis
 
There's no input dialog like MessageBox. You can create one very simply with a form and a TextBox control.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml






Hi,

C# has MessageBox which is convenient to use. Does C# has Input Box? Even though it's easy to create, if there is one in C#, why shouldn't I use it.

Thanks,

Dennis
 
BVM said:
C# has MessageBox which is convenient to use. Does C# has Input Box? Even
though it's easy to create, if there is one in C#, why shouldn't I use it.

In addition to the other reply: You can add a reference to
"Microsoft.VisualBasic.dll" and then use
'Microsoft.VisualBasic.Interaction.InputBox' in C#.
 
Back
Top