Results 1 to 2 of 2

Thread: MonthView Calendar

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2002
    Location
    Florida, USA
    Posts
    56

    Question MonthView Calendar

    Hello Everybody:

    Please I need help in setting a calendar. I am using Visual Basic 6.0 and I have a project that has two forms.

    -- The main form collect data
    -- The second form has a calendar. From the Projects ,Components and Controls , I have checked the microsoft Common Controls-2.6(SP3)

    -- From that Controls I choose the MonthView. This is a small calendar.

    Today I opened the application and I realized that still showing the old Month on the header of the calendar. For example:

    I created this little test program on May 28, 2002 and today is June 6,2002. Therefore, instead shows June 2002 , still showing May 2002.

    The user is refreshing the calendar manually by using the little arrow that the calendar brings.


    Any idea or advice how can I fix this problem so that everytime the user pops-up the little calendar it will show the current month at the top of the header.


    Thanks to all for your time.

    Sincerely,

    Daniel
    Florida


    ================
    HERE IS MY CODE |
    =================

    Private Sub Form_Load()
    MonthView1.Refresh
    End Sub

    Private Sub MonthView1_DateClick(ByVal DateClicked As Date)
    txtGDate.Text = MonthView1.Value
    End Sub
    Daniel
    Florida

  2. #2
    Hyperactive Member Ed Lampman's Avatar
    Join Date
    Mar 2001
    Posts
    273
    in the form load event:

    MonthView1.Value = Now

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