john_tse
May 16th, 2009, 05:20 PM
Hello, im a newbie in this world of OCX programming and i still cant understand whats the purpose of the ReadProperties event and whats the difference between this:
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
TextVariable = PropBag.ReadProperty("Text", "There is no message")
End Sub
and this:
Public Property Get Text() As String
Text = TextVariable
End Property
The ReadProperties event is activated when i read any property or only when i read a particular one?
I think im lost :).
I hope you can help me.
Kind regards.
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
TextVariable = PropBag.ReadProperty("Text", "There is no message")
End Sub
and this:
Public Property Get Text() As String
Text = TextVariable
End Property
The ReadProperties event is activated when i read any property or only when i read a particular one?
I think im lost :).
I hope you can help me.
Kind regards.