I am new to VC++ but not to programming.
I am trying to change the Text property off a textbox when I click a button. However I cannot determine the proper syntax to reference the text field.
Form name - Form1
Textbox name - Textbox1
Button name - Button1
In Button1.Click I tried the following - all of which fail compile
Form1::Textbox1->Text =
"Hello World"; /* error C2227 */Form1::Textbox1.Text = "Hello World"; /*error C2228 */
Textbox1.Text = "Hello World"; /* error C2065 */
This can't be that hard, but I can't find where it is documented.