Hello,

Getting a bit of a headache here because having debugged my soft for hours, i realise i get the Value property get executed twice.

VB Code:
  1. Public Property Get Value() As CheckBoxConstants
  2.      Value = m_Value
  3. End Property
  4.  
  5. Public Property Let Value(ByVal NewValue As CheckBoxConstants)
  6. If Enabled = True Then
  7.        m_Value = NewValue
  8.        Check1.Value = m_Value   'Problem is here ¦ Exec No:1
  9.        RaiseEvent Click              'And here Exec No: 2
  10.         PropertyChanged "Value"
  11. End If
  12.  
  13. End Property

Basically in order to get the checkbox showing ticked, i do check1.value = m_value and then RaiseEvent and that should be it in theory.
But this then has RiaseEvent Click followed after it, which triggers the Value property again, resulting in 2 executions.

I need to figure out a way to do a single execution only.