Results 1 to 2 of 2

Thread: [Resolved] calendar control not displaying new date

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612

    [Resolved] calendar control not displaying new date

    I have some code that slectes the previous months dates and changes the selected dates of my calendars.

    However, the calendar still displays the current month even though the selected date is the previous month.

    Is there a differant setting I should be setting or a way to refresh the calendar?

    VB Code:
    1. Dim mm As Integer
    2.             Dim yy As String
    3.             Dim dtedate As Date
    4.             Dim dtedate1 As Date
    5.             mm = Date.Today.Month
    6.             yy = Date.Today.Year
    7.             If mm <> 1 Then
    8.                 dtedate1 = mm.ToString.Trim() & "/01/" & yy.ToString
    9.                 dtedate1 = dtedate1.AddDays(-1)
    10.                 dtedate = mm - 1.ToString.Trim() & "/01/" & yy.ToString
    11.             Else
    12.                 yy -= 1
    13.                 dtedate = "12/01/" & yy.ToString
    14.                 dtedate1 = "12/31/" & yy.ToString
    15.             End If
    16.             Calendar1.SelectedDate = dtedate
    17.             Calendar2.SelectedDate = dtedate1

    Thanks
    Last edited by indydavid32; Nov 28th, 2003 at 08:22 AM.
    David Wilhelm

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