Mam problem z kontrolką DateTimePicker. Chcę żeby początkowo wartość kontrolki była pusta a potem po wybraniu daty wyświetliła się i to mi sie udaje. Problem w tym, że po wyświetleniu daty kalendarz się nie chowa tak jak to się dzieje zwykle po wybraniu daty. Refresh() nie działa. Proszę o sugestie.
this.DateTimePicker1.CustomFormat = " ";
this.DateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
private void DateTimePicker1_ValueChanged(object sender, EventArgs e)
{
DateTime d = DateTimePicker1.Value;
this.DateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Short;
DateTimePicker1.Value = d;
}