I am creating a form that uses a DateTimePicker control to display the date in the format of h:mm:ss tt. I am trying to make the default time one hour ahead.
The control is labeled deliveryTime and I tried double clicking it and then typing inDateTime.Now.AddHours(1);
I dont know why it won't work. Here is my code which is another method I tried to input
private void deliveryTime_ValueChanged(object sender, EventArgs e)
{
deliveryTime.MinDate = DateTime.Now.AddHours(1);
}
Any suggestions would be great. Thanks