我的自定义按钮的默认属性是Text.I想要更改为名为MaximumClicks的自定义属性
Public Property MaximumClicks As Integer
Get
Return maxClick
End Get
Set(value As Integer)
maxClick = value
End Set
End Property
答案 0 :(得分:2)
您可以将DefaultPropertyAttribute
应用于您的班级:
<DefaultProperty("MaximumClicks")> _
Public Class CustomButton
Inherits Button
Public Property MaximumClicks As Integer
Get
' etc