|
-
Dec 22nd, 2000, 09:00 AM
#1
How to change the BackColor of DatePicker Control?
Note:Change the Color of the Text Portion of the DatePicker
(Not the DropDown calendar portion)
-
Dec 22nd, 2000, 09:11 AM
#2
PowerPoster
rajkumar, don't know which one you looking at... hope your result is in there.
Code:
With DTPicker1
.CalendarBackColor = vbRed
.CalendarTitleBackColor = vbRed
.CalendarForeColor = vbWhite
.CalendarTitleForeColor = vbWhite
.CalendarTrailingForeColor = vbBlue
End With
Chris
-
Dec 22nd, 2000, 09:52 AM
#3
Frenzied Member
Hmm.. never used that control, what is it called? (in the components list)
Thanks.
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Dec 22nd, 2000, 10:16 AM
#4
DatePicker
Hai Jop,
Select from the components option.
Microsoft Windows Common Controls-2 6.0.
--rajkumar
-
Dec 22nd, 2000, 10:22 AM
#5
Well ...
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.
-
Dec 22nd, 2000, 10:24 AM
#6
DatePicker
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
-
Dec 22nd, 2000, 10:35 AM
#7
Frenzied Member
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
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|