using dateclick in monthvirew in vb6

Everytime I try to use monthview_ dateclick(index as integer, datepicked as date) my program won't compile and it tells me the format of the procedure is incorrect even though in msdn this is exactly the procedure format given. Please can anyone tell me what the problem is?I have a version working perfectly wih the dtpicker but when used on anther machine the dates do not show in th calender. Any ideas?
david jenkins
jenkinsdjjAsked:
Who is Participating?
 
danaseamanConnect With a Mentor Commented:
Also it appears you are missing the Byval. The declare here is?
Private Sub MonthView1_DateClick(Index As Integer, ByVal DateClicked As Date)
0
 
danaseamanCommented:
monthview_ dateclick(index as integer, datepicked as date) indicates that you are using a control array. If there is only one control without an index than the declare would be monthview_ dateclick(datepicked as date).
Do you have more than one MonthView on the Form?
0
All Courses

From novice to tech pro — start learning today.