Disabling a Page on Tab panel | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Disabling a Page on Tab panel

How does one go about disabling a Page in a tab Panel pragmatically

4th Feb 2019, 11:09 AM
Sizwe Malaza
Sizwe Malaza - avatar
3 Answers
+ 1
All winforms controls as inheritors of the class Control have the property 'enabled'. Try to use it.
4th Feb 2019, 2:28 PM
Earl_Grey
Earl_Grey - avatar
+ 1
It's strange. Do you need to disable all sub controls on your tab? If it's true and enabled does nor work for your tab you can add a simple win panel to the tab, put the subcontrols on it and then enable disable this panel.
4th Feb 2019, 7:34 PM
Earl_Grey
Earl_Grey - avatar
0
yes the do but the enabled property doesnt apply for tab pages
4th Feb 2019, 3:35 PM
Sizwe Malaza
Sizwe Malaza - avatar