I am trying to create a button that turns off a panel but when i debug it i get 'error C2064: term does not evaluate to a function taking 1 arguments'

private: System::Void go_MouseClick(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
				 this->panel1->Visible(false);
				 this->panel1->Enabled(false);
			 }

I would really appreciate some help.

Thanks

Did you try thing: this->panel1->Visible = false;

Did you try thing: this->panel1->Visible = false;

It worked. Thank you.

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.