hi,
i want to create one input box, it contains textbox and two buttons(ok and cancel) .
plz anyone give the sample code....
thanks
Jeevan
Hoew to create inputbox in c#.net
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Kirtan PatelRank #292 · 8.6K reputationPosted Oct 15, 2009, 9:16 PM EDT
There is no Input Box in the C# like Vb.net
but you can it by Adding Reference of Visualbasic.dll
Lets See How to Do it :)
Friend ,Don't forget to mark "do you like this answer" if you find my answer helpful to you :-)
Step 1
Step 2
--------
import Name Space
------------------------
using Microsoft.VisualBasic;
Use the input BOx In Code :)
string x = Interaction.InputBox("Prompt", "Title","",0,0);
------------------------------------------------------------------------------------------
If you Still want to Create Your Own Input Box then
article is Here for that
http://www.codeproject.com/KB/edit/InputBox.aspx
All the Best :)
jingeRank #2,527 · 554 reputationPosted Oct 15, 2009, 9:31 PM EDT
That's it.
But adding VB referrence solution is also a good one. If we already have one, why we borther creating the same? However, if you need further customization, i.e, add some of your own code logic. Then creating a customized inputbox is defintely the solution.