为禁用功能提供代码

问题描述:

我有一个窗体,我放了5个面板。所以,如何使用函数解析面板给我代码

i have one windows form in there i put 5 panel.so,how to disabel panels using function give me code

panel1.Enabled = false;