'how do I clear entries in text boxes, visual studio 2019

private: System::Void textBox1_Click(System::Object^ sender, System::EventArgs^ e) {

    PNumberInputBox->Clear();
    PNumberOutputBox->Clear();
    DescriptionInputBox->Clear();
    DescriptionOutputBox->Clear();
    MNumberInputBox->Clear();
    MNumberOutputBox->Clear();
    WPInputBox->Clear();
    RPOutputBox->Clear();
    PercentInputBox->Clear();
    QuantityInputBox->Clear();
    QuantityOutputBox->Clear();
}

These are the code, but the system shows an error. enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source