How to use InputBox in C#

By Super Man

Here i will show how you can make use of InputBox in c#. There is no control for InputBox in c# but you can get that from VisualBasic.

First you have to add one .dll file from the

Project Menu -> Add refercenc - > Micorsoft.VisualBasic

and then you can make use of InputBox.

            String yourname = Microsoft.VisualBasic.Interaction.InputBox("Enter Your Name");

             MessageBox.Show("Your name is :" + yourname);

How to use InputBox in C#  (2256 Views)