void chboxUseEndDate_CheckStateChanged(object sender, EventArgs e) { useEndDate = chboxUseEndDate.Checked; dtpEndDate.Enabled = useEndDate; }