Dim frm As WinForm.Form = e.Form
For Each c As WinForm.Control In frm.Controls
If TypeOf c Is WinForm.Label Then '判断控件是否是按钮
c.TextAlign = ContentAlignment.MiddleRight
End If
Next
老师,黄色代码设置标签文本对齐方式怎么报错呢?
[此贴子已经被作者于2024/8/14 14:44:20编辑过]
If TypeOf c Is WinForm.Label Then '判断控件是否是按钮
Dim la As WinForm.Label = c
la.TextAlign = ContentAlignment.MiddleRight
End If