5
The question is about Winforms' Datetimepicker control. When we type the date, instead of choosing the calendar, the cursor does not walk. That is, we typed the two digits of the day, and instead of the cursor passing to the month, it continues on the day. If we keep typing it overwrites the value of the day.
How can I modify this behavior so that when typing the day it automatically passes to the month and then to the year? The goal is that when typing the date, type for example 06042018
directly and it stays 06/04/2018.
I tried to find some property control that enables this, but it doesn’t. I also thought about trying to do this as the Keyup event, but I couldn’t find anything that set the cursor position.
How can I implement this operation in Datetimepicker?
When I was asked something like this, I went with the maskedtextbox, but the Datetimepicker is interesting. I’ll wait in case someone’s already done it, otherwise I’ll try to do it
– Rovann Linhalis