Reputation: 197
I have one DateTimePicker on WindowsForm that should stay open for all life of the form. How I can do that WITHOUT use the command by line to open it everytime CloseUp. I need something like a properties to prevent the closing.
Upvotes: 3
Views: 2732
Reputation: 197
Thanks for the tip of use MonthCalendar instead of DateTimePicker, it works for me. To be a little clearer to further readers:
monthCalendar.MaxSelectionCount
to 1monthCalendar.SelectionRange.Start
instead of dtp.Value
to get the selected dateUpvotes: 4