More than likely your problem is that you are not calling a "changed" event which notifies the binding of a change in the value of the bound property. Since you have a property called BindableValue, you will want to create a BindableValueChanged event and an OnBindableValueChanged method to call the event. You will then place this in the Set (or anyplace you change the internal value and want to update the bound value).Public Event BindableValueChanged as Eventhandler
Protected Overridable Sub OnBindableValueChanged()
RaiseEvent BindableValueChanged(Me, EventArgs.Empty)
End Sub
Next, you will want to call the OnBindableValueChanged method when the value changes within the control:
Public Property BindableValue As Integer
Get
Return _BindableValue
End Get
Set(Byval value As Integer)
_BindableValue = value
OnBindableValueChanged()
End Set
End Property