I have used 2 datetime Pickers in a custom user control for selecting dates.
using the event valuechanged I wrote the code. The 'focused' property of the datetime picker is not set to true even though I have changed date. Why is this happening?
Read the code below. Please any one help me.

private void dtp_ValueChanged(object sender, EventArgs e)
        Control ctrl = (Control)sender;
        if (ctrl.Focused)
            StartDate = dtpStartDate.Value;
            EndDate = dtpEndDate.Value;
            SelectedDateRange = DateRange.Custom;

Can u elaborate a bit to make us understand. As in what is required .And for which control you have wrriten a code of ValueChanged.?