0

Hello all,

Does VC++ Express 10.0 even support the ability to get text from a text box? I've seen related threads having conflicting solutions, none of which actually work. Ex: must have SDK version x.y. This functionality seems to be so basic and necessary that solutions would be all over the internet.. but they're not. So far, my code is the prefab code generated by VC++ FORMS. All I need is a Yes/No.. and if yes, the name of the method/function/class/object/whateverDoesTheJob and the data/var name. Thanks in advance and apologies if I've gone too far off the reservation.

Edited by pstrohma: left out IDE spec

3
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by pstrohma
0

>>Does VC++ Express 10.0 even support the ability to get text from a text box?
Ask yourself, what's the use of a write-only text box.

CText myText;
CString text = myText.Text; //Property
//Go berserk with text.

In case I wasn't clear - Yes.

Edited by nbaztec: n/a

0

nbaztec.. your comment was the BASIS of my post. Thanks for the snippet.

0

Works now..tks ancient dragon.

added to form1.h (for 2nd textbox also).

private: System::Void getSearchResults_CurrentChanged(System::Object^  sender, System::EventArgs^  e) 
			 {

					   String ^ boxText1 = richTextBox1->Text;
					   String ^ boxText2 = richTextBox2->Text;

				 //getRichTextBox(/*System::Windows::Forms::RichTextBox^ */ richTextBox1);
			 }
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.