Out puting array to text box

I am trying to out put my array to a text box. I have tried
textbox1->Text = number[x];
x++;
The problem is i keep getting this error
error C2664: 'void System::Windows::Forms::Control::Text::set(System::String ^)' : cannot convert parameter 1 from 'int' to 'System::String ^'
        No user-defined-conversion operator available, or
        No standard conversion exists from the boxed form of the arithmetic type to the target type


Answer this question

Out puting array to text box

  • MartinB

    Hi,

    is the type of your number array String

    If not you have to convert the type to string with something like:


    textbox1->Text = number[x].toString();

     


  • Tad O

    maybe the function String::Concat could help you

    drole


  • FrankCalvin

    That is only outputing the last char or int. so if the array was like Array[0]=h and Array[1]=i it only out puts i.

  • Out puting array to text box