char string to system string on Form1.h

Hello. I had a question regarding strings with GUIs (Form1.h) How do you output a string (char) to a textbox on a gui?


char sample[10] = { 'k', 'a', 'i', 's', 'e','r' };
this->textBox1->Text=sample[0].ToString();

Here, 'k' was supposed to be the output in the text box, but instead '107' was.
I have spent the entire day surfing the web looking for a solution but no luck so far.
It has come to my understanding that the GUI uses a different string type (system), and therefore some sort of conversion is required to achieve the desired result.
Please help!
Wouldn't it be easier to just do this->textBox1->Text="k"?
the thing is im using file IO to send strings to the textbox. I just provided a much more simplified version of the situation here.
Then you'll have to give more details.
Topic archived. No new replies allowed.