How to change the BackColor of DatePicker Control?
Note:Change the Color of the Text Portion of the DatePicker
(Not the DropDown calendar portion)
Printable View
How to change the BackColor of DatePicker Control?
Note:Change the Color of the Text Portion of the DatePicker
(Not the DropDown calendar portion)
rajkumar, don't know which one you looking at... hope your result is in there.
ChrisCode:With DTPicker1
.CalendarBackColor = vbRed
.CalendarTitleBackColor = vbRed
.CalendarForeColor = vbWhite
.CalendarTitleForeColor = vbWhite
.CalendarTrailingForeColor = vbBlue
End With
Hmm.. never used that control, what is it called? (in the components list)
Thanks.
Hai Jop,
Select from the components option.
Microsoft Windows Common Controls-2 6.0.
--rajkumar
I don't know of any simple way of changing the BackColor of the textbox part of this control. If colour schemes are important to you, use a textbox in synchronization with the calender control.
Hai Chris,
My Q is different. The Code u have given will change the BackColor of Calander(drop down).
I want to change the color of Text Portion.(i.e The Area which displays the date after the selection from the
Drop down Calander)
--rajkumar
Unfortuanatly I don't think this is possible, it doesn't seem to act like a textbox because it doesn't seem to accept the EM_SETBKGNDCOLOR (WM_USER + 67) message to change the backgroundcolor.
PS: Thanks rajkumar for showing where to find it ;)