I am trying to delete what is written in a textBox like this in C++ .NET.

When pressing the button the text/Numbers I have written in the textBox doesn´t deletes.
I beleive 0 is the index from where to begin the delete wich should be from the first character in the textBox.

this->textBox2->Text->Remove(0);

how about this? this->textBox2->Text = "";

Thank you. That seemed to work good.

how about this? this->textBox2->Text = "";

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.