Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Chaging the format of a day in a DatePicker
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Chaging the format of a day in a DatePicker

 Post Reply Post Reply
Author
Message
EMoscosoCam View Drop Down
Newbie
Newbie


Joined: 15 August 2006
Location: Peru
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote EMoscosoCam Quote  Post ReplyReply Direct Link To This Post Topic: Chaging the format of a day in a DatePicker
    Posted: 11 October 2006 at 7:32pm
Is it possible to change the forecolor or the background color of a given date within the DatePicker control?
 
Something like:
   DatePicker1.Date("2005-10-01").BackColor=RGB(200,10,20)
 
Thanks a lot.
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 12 October 2006 at 3:34am
Hi,

Yes, that's possible, but not in this way.

Look at our DatePickerSample application and check "Customize Special Days" box.

As you can see, it works by enabling DayMetrics notification and handling it.

Example for your case:

Private Sub wndDatePicker_DayMetrics(ByVal Day As Date, ByVal Metrics As XtremeCalendarControl.IDatePickerDayMetrics)
    If Day = #10/1/2005# Then
        Metrics.BackColor = RGB(200, 10, 20)
    End If
End Sub


--
WBR,
Serge
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.