J
JonathanG
All,
Thanks in advance for any help. I am attempting to write a property
that is an array of strings. I am trying to trap the event when one of
the strings in the array changes.
When I step through the code, I can walk through the Set statement when
the length of the array changes (and therefore trap anything I want),
but if one of the elements change, it does not go through the
statement. I am attempting to write my own control from scratch, so I
would like to be able to edit the Labels property on the property grid.
I can do so now, but like I said, I cannot trap the event when a data
element changes. Here is my code:
Dim m_Labels() As String
Property Labels() As String()
Get
Return m_Labels
End Get
Set(ByVal Value As String())
m_Labels = Value
RaiseEvent Changed()
End Set
End Property
Can anyone help me determine how to raise the event 'Changed' if the
value of one of the elements of the array changes?
Thanks!
Thanks in advance for any help. I am attempting to write a property
that is an array of strings. I am trying to trap the event when one of
the strings in the array changes.
When I step through the code, I can walk through the Set statement when
the length of the array changes (and therefore trap anything I want),
but if one of the elements change, it does not go through the
statement. I am attempting to write my own control from scratch, so I
would like to be able to edit the Labels property on the property grid.
I can do so now, but like I said, I cannot trap the event when a data
element changes. Here is my code:
Dim m_Labels() As String
Property Labels() As String()
Get
Return m_Labels
End Get
Set(ByVal Value As String())
m_Labels = Value
RaiseEvent Changed()
End Set
End Property
Can anyone help me determine how to raise the event 'Changed' if the
value of one of the elements of the array changes?
Thanks!