if (panel_attendanceSubMenu.Visible == true) panel_attendanceSubMenu.Visible = false; if (panel_deptSubMenu.Visible == true) panel_deptSubMenu.Visible = false; if (panel_salarySubMenu.Visible == true) panel_salarySubMenu.Visible = false; if (panel_teacherSubMenu.Visible == true) panel_teacherSubMenu.Visible = false; if (pan1_Incentive.Visible == true) pan1_Incentive.Visible = false;在winform中什么意思
时间: 2023-04-10 12:04:58 浏览: 157
C#_c#控件属性说明_源码.zip
这段代码的意思是,如果 panel_attendanceSubMenu、panel_deptSubMenu、panel_salarySubMenu、panel_teacherSubMenu 或 pan1_Incentive 中有任何一个控件是可见的,就将它们设为不可见。这段代码通常用于隐藏多个子菜单或子控件。
阅读全文