Hi
I have the following problem. I have an Entity with a datetime field, which is editied on a WinForms form with a datetimepicker control bound to the field.
The first time the entity is edited is retrieved from the db, passed to the form, which is displayed and everythings works as it should.
If the entity is edited for a second time the initial copy is retrieved from a collection, passed to the form again, and that is when the problems start.
Setting the datetime value to a valid value results in the value being passed to
Public Overridable Property [InceptTime]() As System.DateTime
This calls
SetNewFieldValue(CType(PurchaseFieldIndex.InceptTime, Integer), value)
calls
Dim toReturn As Boolean = MyBase.SetNewFieldValue (fieldIndex, value, False)
returns true
and goes to
Case PurchaseFieldIndex.InceptTime
OnInceptTimeChanged()
which calls
RaiseEvent InceptTimeChanged(Me, New EventArgs())
which never returns.
No exception is raised, and the control will not let me tab away from it, suggesting an invalid value...
Any ideas as this is now really bugging me....