是自定义控件的话,你在Property Let 中RaiseEvent即可Option Explicit Private mCaption As String Event Test() Public Property Get Caption() As String Caption = mCaption End PropertyPublic Property Let Caption(ByVal s As String) mCaption = s RaiseEvent Test End Property
Private mCaption As String
Event Test()
Public Property Get Caption() As String
Caption = mCaption
End PropertyPublic Property Let Caption(ByVal s As String)
mCaption = s
RaiseEvent Test
End Property