Win Forms - Simple textBox

I have a simple WinForm program with a text box.

When I write to the textbox it doesn't display. If I look at textBox1 in the debugger it is receiving the handle and the string. It just doesn't display.

Is there a property I need to set for a text box to accept multiple strings and refresh automatically?

<>
// textBox1
this->textBox1->Location = System::Drawing::Point(330, 36);
this->textBox1->Multiline = true;
this->textBox1->Name = L"textBox1";
this->textBox1->ScrollBars = System::Windows::Forms::ScrollBars::Vertical;
this->textBox1->Size = System::Drawing::Size(534, 199);
this->textBox1->TabIndex = 5;
this->textBox1->TextChanged += gcnew System::EventHandler(this, &MyForm::textBox1_TextChanged);
//
/<>


<>
String^ curLine;
textBox1->Text = curLine;
textBox1->Text = "file info should show here";
Last edited on
Topic archived. No new replies allowed.