Home Forums WinForms controls Other WinForms controls WinCalendar current date panel problem Reply To: WinCalendar current date panel problem

User (Old forums)
Member
Post count: 23064

You need to set SelectedDate and FirstMonth properties when the date changes in the TextBox.

e.g. :

winCalendar1.FirstMonth = new DateTime( 2006, 07, 04 );
winCalendar1.SelectedDate = new DateTime( 2006, 07, 04 );

This will move the calendar to month of July, and set the highlighted date to the fourth.

Imported from legacy forums. Posted by André (had 301 views)