这是我的代码:
if (r->Value == "Off"){
if (checkBox1->Checked)
checkBox1->Control::InvokeOnClick(checkBox1,EventArgs::Empty);
}
else if (r->Value == "Off") {
if (!checkBox1->Checked)
checkBox1->Control::InvokeOnClick(checkBox1,EventArgs::Empty);
}
和错误:
1>c:\users\lukasz\desktop\project\General.h(2204): error C3767: 'System::Windows::Forms::Control::InvokeOnClick': candidate function(s) not accessible
1>c:\users\lukasz\desktop\project\General.h(2208): error C3767: 'System::Windows::Forms::Control::InvokeOnClick': candidate function(s) not accessible
它出什么问题了?