I want a time picker in visual studio, I did find a DateTimePicker
but turns out it's just a date picker
I did something similiar in Qt, I found a time picker there, I need soemthing like this in VS:
I want a time picker in visual studio, I did find a DateTimePicker
but turns out it's just a date picker
I did something similiar in Qt, I found a time picker there, I need soemthing like this in VS:
You can use 2 datetimepickers to pick date AND time. They can pick Date OR time in WinForms (But not both) Put a first one with the name of datePortionDateTimePicker Put a second one and name it timePortionDateTimePicker. Then on the form load apply these settings:
timePortionDateTimePicker.Format = DateTimePickerFormat.Time;
timePortionDateTimePicker.ShowUpDown = true;
When you need to combine date AND time use :
DateTime myDate = datePortionDateTimePicker.Value.Date + timePortionDateTimePicker.Value.TimeOfDay;
More info :