I'd like to create my own edit control which shows the date in the form YYYY-MM-DD. This control will validate the date if it's specified in its entirety, but it will also allow the user to only specify the year or just the year and month if they want.
My question is, I could subclass the edit control directly, but if I was creating my own UserControl, then how would I show a blinking cursor? (how do they do it in the actual edit control)? Do they create a thread to set paint events to draw it and then remove it - or a timer?
Any suggestions on creating this control would be appreciated.