ComponentOne VSView 8.0
Step 3: Browsing months

The next step is to add code to the browsing buttons. To achieve this, all we need to do is add or subtract a month from the global variable TheDate and regenerate the calendar. Double-click each of the browsing buttons, and then add the following code to the Click event handler:

Example Title
Copy Code
Private Sub cmdPrev_Click()

  TheDate = TheDate - 30

  ShowCalendar

End Sub

Private Sub cmdNext_Click()

  TheDate = TheDate - 30

  ShowCalendar

End Sub

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback