改变窗口中某一个容器内控件的字体及背景,写了红色部分的代码,但是提示错误,该怎么处理,比如我想改变分区面板panel2中的控件
Dim fnt As New Font("黑体",12,FontStyle.Underline)For Each c As Winform.Control In e.Form.Controls'For Each c As Winform.Control In e.Form.Controls("SplitContainer1") c.BackColor = Color.LightPinkc.Font = fntNext