Home Forums WinForms controls Other WinForms controls WinDatePicker Reply To: WinDatePicker

User (Old forums)
Member
Post count: 23064

You can’t set the text property, since what’s behind the text is not a string but a date. You need to use the Value property to do this.

e.g.:

winDatePicker1.Value = new DateTime( 2006, 9, 27 );

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