I have a simple form, with two DateTimePicker-controls: One for date, and one for time. The thing is these two controls are supposed to represent a single point in time. Hence I would like to "Bind" them to a single DateTime property on my form (for simplicity). I did the following:
// Start is a DateTime property on the form
_StartDate.DataBindings.Add("Value", this, "Start");
_StartTime.DataBindings.Add("Value", this, "Start");
But hooking into "ValueChanged" event, yields mixed results... Sometimes I get exactly what I want, sometimes the updates of the property are "sluggish". I figured this way of splitting into two DateTimePicker's was fairly common. So how to do it?
Update: There is possibly multiple questions in there:
Unfortunately, I think you may be finding yourself writing a custom control that includes both, which you can data bind to. That's how we solved the same problem.