vb.net and month calendar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dwadish
    New Member
    • Nov 2006
    • 129

    vb.net and month calendar

    Hai guys !! help me

    if any code/ property support to a month calendar for enlarging it's size.

    i want to show pictures in a picture box when changing the month from the calendar control. Can I ?

    plz provide an idea or code for this project //


    Thanx in advance!!!
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Use a stylesheet to control the look and size of the calendar. You would need to return the month and load an image depending on which month it was...

    Hope that this helps.

    Comment

    • guajaj
      New Member
      • Mar 2007
      • 3

      #3
      **Sorry I'm new to the Forum, If this is in the wrong place***

      I'm trying to use the MonthCalendar tool from the Common Controls Toolbox in Visual Studio. What is the code to use the date selected? I've searched, and all I can find is .TodayDate which is the actual current date or .SelectedRange which can't be converted into an integer. The toolbox says that it 'Displays a monthly calendar from which the user can select a date.' but how does the selected date get stored/used?

      Comment

      • guajaj
        New Member
        • Mar 2007
        • 3

        #4
        Of course as soon as I post something I find the answer to my own question. For anyones future reference I used:

        Nights = System.DateTime .Compare(EndMon thCalendar.Sele ctionStart.Date , BegMonthCalenda r.SelectionStar t.Date)

        With Nights being a integer I used for future calculations, and EndMonthCalenda r and BegMonthCalenda r being my Month Calendar Objects.

        Comment

        • kenobewan
          Recognized Expert Specialist
          • Dec 2006
          • 4871

          #5
          Had the same experience before. Thanks for sharing the solution :).

          Comment

          • jrjan1
            New Member
            • Sep 2006
            • 7

            #6
            Originally posted by guajaj
            Of course as soon as I post something I find the answer to my own question. For anyones future reference I used:

            Nights = System.DateTime .Compare(EndMon thCalendar.Sele ctionStart.Date , BegMonthCalenda r.SelectionStar t.Date)

            With Nights being a integer I used for future calculations, and EndMonthCalenda r and BegMonthCalenda r being my Month Calendar Objects.

            Do you have to use two calendars? Is there a way to only use 1?

            Comment

            • DeanMiller
              New Member
              • Mar 2007
              • 5

              #7
              If you are trying to just get the date that is selected you can always use the monthCalendar.S electionStart it returns the DateTime of the selected date.

              Comment

              Working...