Hi,
I suggest you could try the following code:
String^ out1 = Convert::ToString(etresult);
textBox6->Text = out1;
When you add controls to the form, vs will automatically add the following statements:
private: System::Windows::Forms::TextBox^ textBox6;
this->textBox6 = (gcnew System::Windows::Forms::TextBox());
So you didn’t need to repeat by yourself :
System::Windows::Forms::TextBox^ textBox6 = gcnew System::Windows::Forms::TextBox;
Best Regards,
Jeanine
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.