Bind Calendar

Moishe

Newcomer
Joined
May 30, 2003
Messages
24
Hi All
Does anyone know how to bind calendar control to a button
so when I press button "Next Day" it would move to the next day in the calendar just like "--> button on the keyboard does"
Thanks for your help
 
C#:
private void BackDayB_Click(object sender, System.EventArgs e)
		{
			this.dateTimePicker.Value=this.dateTimePicker.Value.AddDays(-1);
		}

		private void ForwardDayB_Click(object sender, System.EventArgs e)
		{
			this.dateTimePicker.Value=this.dateTimePicker.Value.AddDays(1);
		}
 
Back
Top