I'm trying to work out the syntex to select dates from the MonthCalendar control and have the selected dates appear in a ListBox.
Here's the way I'm trying to approach it, the code is in the MonthCalendar class using DateSelected method. The first part seems Ok but their is a squiggely line under the MonthCalendar part.
lstListBox.SelectedItem = mnthMonthCalendar.Select
the reason for the squiggly lines is because Select is a method, so it has to be:
Secondly, the Select() method is void, hence it returns no types. Unfortunately DateSelected() is an event, so you have to treat it as an event.