Say for instance I have a C# Winforms applciations that uses a tabcontrol with four different tab pages.
Above this control on the main form are a series of groupboxes containing various buttons and textboxes relevant to the different functions running on each individual tabpage.
If I am using a particular tabpage that only makes use of some of the controls, I want to disable the others so that the user cannot accidentally click the wrong buttons.
Example Logic:
If(tabpage1.selected)
{
button3.Disabled();
}
Does anyone know of a way of implementing this kind of functionality?!
Regards,
EDIT:
Essentially I want to be able to disable groupboxes!!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…