Posted: Wed Aug 24, 2016 1:04 am Post subject: (C++) What variable type can I assign "textBox1->Tex
What variable type can hold this "textBox1->Text"? I tried including the string library and declared a string variable, but I could not assign "textBox1->Text" to the variable.
Update: I am using the windows form template in Visual Studio C++.
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
Posted: Wed Aug 24, 2016 1:14 am Post subject:
If you are using the .net controls you need to use the .net types that the control specifies it accepts. Hover your mouse over the ->Text part of your code and a tooltip should show what the expected type is. Or you can right-click it and choose 'Go to definition / Go to implementation' to see how its defined. _________________
If you are using the .net controls you need to use the .net types that the control specifies it accepts. Hover your mouse over the ->Text part of your code and a tooltip should show what the expected type is. Or you can right-click it and choose 'Go to definition / Go to implementation' to see how its defined.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum