16,555
社区成员
发帖
与我相关
我的任务
分享
Public ReadOnly Property LabelShow As Label
Get
Return Me.Label1
End Get
End Property
Public ReadOnly Property TextBoxShow As TextBox
Get
Return Me.TextBox1
End Get
End Property
Public Property LabelText As String
Get
Return Label1.Text
End Get
Set
Label1.Text = Value
End Set
End Property
再编译,你就可以选中这个自定义控件,并且通过更改“LabelText”属性修改它了。