Results 1 to 5 of 5

Thread: [RESOLVED] Calendar

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2009
    Posts
    138

    Resolved [RESOLVED] Calendar

    I have this calendar on my form.

    http://www.imagesforme.com/show.php/849516_calendar.JPG

    I have one question

    How to move calendar on certain date?

    For example on 12.11.2009.

    Don't confuse yourself with "pro", this is Croatian month for December.

    And how to BOLD certain date?

    For example day 13 on calendar on certain month and year

    Thanks!
    Last edited by hepeci; Dec 13th, 2009 at 01:20 PM.

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: Calendar

    What control is that?

    I would use the MonthCalendar control built into .Net and then it has easy ways to change the date and add bolded dates. To change the currently selected date:


    Code:
    MonthCalendar1.SelectionStart = Date.Today.AddDays(30)
    To add a bolded date, you can do this:
    Code:
    MonthCalendar1.AddBoldedDate(New Date(2010, 1, 13))

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2009
    Posts
    138

    Re: Calendar

    And how to move exactly on today date?
    What's code for this button?

    And how to de-bold some date?

  4. #4
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: Calendar

    To move to Today's date, set your selection start to Date.Today.

    The Calendar has an AddBoldedDate method, so logically the RemoveBoldedDate probably removes bolded dates.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jan 2009
    Posts
    138

    Re: Calendar

    OK, thanks!

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