How to accept input from a textBox on a .Net Form Application
Posted on 2006-04-27
I have a Form application and I need to a accept input from a text box and store it in an associated variable so that I can pass the variable throughout the application.
My questions are:
1) How do I initialize the text box so that it is empty upon launch or so that it doesn't show 'textBox1' ?
2) When the user types in the appropriate text, how does that text get assigned to a string variable ?
3) In order to accept the text does the user need to hit the 'Enter' key on the keyboard ?
I'm guessing the code begins with:
void Form1::textBox1_TextChanged(System::Object * sender, System::EventArgs * e)