Article ID: 172312
Article Last Modified on 12/10/2003
Public Event propchange(newv As String)
Private propt As String
Public Sub showfrm()
MsgBox "asdfl"
End Sub
Public Property Get testp() As String
testp = propt
End Property
Public Property Let testp(ByVal vNewValue As String)
propt = vNewValue
RaiseEvent propchange(propt)
End Property
Public WithEvents eventp As testclass
Private Sub eventp_propchange(newv As String)
MsgBox newv
End Sub
Private Sub Form_Load()
Dim a As New testclass
a.showfrm
Set eventp = a
a.testp = "test string"
End Sub
Keywords: kbprb KB172312