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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
jingePosted Oct 16, 2009, 1:31 AM
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.
Kirtan PatelPosted Oct 16, 2009, 1:16 AM
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 :)