I directly to a panel of the Enabled attribute is set to false, within such a panel couldn't scroll the contents of the
When I use recursion to each control Panel of the Enabled attribute is set to false, so the content inside the Panel can scroll, but, again, I will control the Enabled attribute is set to true, some will always need to disable the control Settings for available,
Of course I can these controls marked, skip when set the Enabled attribute is true, but such controls would appear to be more trouble,
So, is there a simple way: the controls within the Panel can switch between enabled and disenable (switch to enabled skip always need disenable controls), when disenable scrollable view again?
Directly set the Enable properties of the Panel is the most convenient, the only problem is can't scroll, is there any way to deal with, please?
CodePudding user response:
Try outside a panel to another panelCodePudding user response:
Set another Panel, the outermost display scrollbarThe second Panle is used to set the Enable, the Dock is set to the Top, and manually set the height
Controls in the second Panel