-
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
-
in the form load event:
MonthView1.Value = Now