Results 1 to 7 of 7

Thread: Anyone can help ?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2004
    Posts
    235

    Anyone can help ?

    If I add this method in.... MonthCalendar1.MaxDate.addDays(3)

    Means that I can only select today until 3 days from now...

    The thing now is that, how do I make this four days's colours different from other days ??

    Meaning like these four days on the MonthCalendar are bold, while the other dates are not bold....
    Last edited by hhh; Oct 17th, 2004 at 08:51 AM.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Jul 2004
    Posts
    235
    Some amendments to the codes...

    MonthCalendar1.MinDate = Today.Date
    MonthCalendar1.MaxDate = Today.AddDays(3)

    yupz...this is it

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2004
    Posts
    235
    anyone ??

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jul 2004
    Posts
    235
    ??

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jul 2004
    Posts
    235
    can someone help pls ?

  6. #6
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hi,

    Have a look at MSDN Help, MonthCalendar control, Selecting dates. That will show you how to make the dates bold. Don't know about colour. The only info I can find is for internet use only - The Dayrender Event.

    EDIT:

    VB Code:
    1. Dim BoldDates(3) As DateTime
    2.         Dim iCount As Integer
    3.         For iCount = 0 To 3
    4.             BoldDates(iCount) = Today.AddDays(iCount)
    5.         Next
    6.         MonthCalendar1.BoldedDates = BoldDates
    Last edited by taxes; Oct 25th, 2004 at 07:12 AM.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Jul 2004
    Posts
    235
    erm...is it that colors could not be input into that monthcalendar ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width