You have quite a few errors here so lets just correct them all up. First of all, you are missing the following...
1) You are missing some parenthesis in your if statement.
2) I am not sure why you have a checkchanged for checkbox7 in the if, the event fires if this checkbox is checked or unchecked.
3) Your if statement is missing an opening curly brace
4) Numerous statements are missing a semicolon on the end. Remember C++ requires semicolons on the end of all statements.
5) You are accessing properties all wrong.
So lets see if we can clean this up a bit....
cpp
public: System::Void checkBox7_CheckedChanged(System::Object^ sender, System::EventArgs^ e) {
// Notice the parenthesis, also notice how we are accessing properties
// If checkbox7 is checked, execute the statements
if (checkbox7->Checked) {
// Notice we use ->Visible to access the visible property
// Also notice we have a semicolon on the end of each statement
checkbox11->Visible = true;
checkbox12->Visible = true;
checkbox13->Visible = true;
checkbox14->Visible = true;
} // <-- Here is our closing curly brace for the if statement
else {
// Do statements here for if the checkbox becomes unchecked
}
}
So now if the checkbox7 becomes checked then it will make the other checkboxes visible. In the else statement we can hide them all again if you like. This will be when checkbox7 becomes unchecked.
Hope this move you forward with the project. Good luck!
"At DIC we be checkbox checking check code ninjas... check on the check of checkboxes ol' buddy!"