I have a 2 forms - parent and child.
The parent has a property related to a label control, like so:
Now - this is "supposed" to be a clean and safer way to handle your inherited controls, rather than using the Protected keyword route.
My child form now shows the ToggleFooLabel in the list of properties for that form and TRUE/FALSE dropdown - well cool! really nice so I set the FooLabel to be FALSE, I just dont want to see it in my child form but its ok to see on the parent. However on running the program the form shows the label on the child???!!!! Like it never even cared!!! Anyone know whats going on??
The parent has a property related to a label control, like so:
Code:
[Category("ToggleFooLabel")]
[Description("Set whether label is visible or not")]
public bool ToggleFooLabel
{
get { return lblFoo.Visible; }
set { lblFoo.Visible = value; }
}
Now - this is "supposed" to be a clean and safer way to handle your inherited controls, rather than using the Protected keyword route.
My child form now shows the ToggleFooLabel in the list of properties for that form and TRUE/FALSE dropdown - well cool! really nice so I set the FooLabel to be FALSE, I just dont want to see it in my child form but its ok to see on the parent. However on running the program the form shows the label on the child???!!!! Like it never even cared!!! Anyone know whats going on??