Hello!

How to implement the ability to select a date range by the user in the monthCalendar object or there may be other solutions. The problem is that SelectionRange allows you to select with just one click (stretch to the desired dates) and within one month. And the task: open the calendar. Click on the date 2002.05.05 and then click on 2016.05.05 and get this range.

Thank!

Immediately make a reservation: there is a DateChanged event, and you can also select a range by drag & drop by dragging the cursor within one month. You can select dates from different months using Shift . But this is user-friendly
It would be desirable, according to the algorithm described above. Клик=startData + Клик=endData

  • Add code to make the question more understandable. - Denis Bubnov
  • Make two calendars one under the other. They clicked the top, hid it in the background. For the second click came out another. And so click them cyclically. Where is the start, where the end somehow figure it out. I myself would try to do so, but there is no time. - Sergey

1 answer 1

And what's stopping you from doing the two startData, endData and, say, when assigning the endData value to a click to programmatically create a SelectionRange ?

  • Try to write more detailed answers. Explain what is the basis of your statement? - Nicolas Chabanovsky