Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
1.67/5 (3 votes)
See more:
hello i make simple project in project i take messagebox when user click button ank to user to input some data in messagebox plz give me code how to input some data in runtime in messagebox..
thank u......

[I got tired correcting txtspk, all lowercase, no formatting and asking for code... Read the rules!]
Posted
Updated 4-Oct-10 3:33am
v2

1 solution

How about using an input box because the message box is for messages only.

C#
string value = string.empty;
if (Tmp.InputBox("User input", "Give me some code:", ref value) == DialogResult.OK)
{
  MessageBox.Show("You entered: " + value);
}


Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900