private void buttonLeft_Click(object sender, System.EventArgs e) { selectedDayLabel.BackColor = Color.Transparent; selectedDayLabel.ForeColor = foreColor; DateTime dt = selectedDayLabel.Date; if (dt.Day > lastMonthDate.Day) { SelectedDate = lastMonthDate; } else { SelectedDate = SelectedDate.Subtract(new TimeSpan(lastMonthDate.Day, 0, 0, 0)); } }