vb如何把label设置为透明
在VB中,可以通过设置Label控件的BackColor属性为Transparent来使Label透明。
例如,以下代码将Label1设置为透明:
Label1.BackColor = Color.Transparent
另外,还可使用以下代码将全部窗体的所有Label控件都设置为透明:
For Each ctrl As Control In Me.Controls
If TypeOf ctrl Is Label Then
ctrl.BackColor = Color.Transparent
End If
Next
TOP