Anthony Matovu
asked on
i close monthcalender control when i chose to navigate the month
I have this code, but when I choose to navigate the month it set the .SelectionRange.Start to the date of that new month and therefore closes. I want it stay until I have finished the navigation through the months. I am think of comparing current month with new month before I close. Is there a better and direct way.
Thank you
Private Sub MonthCalendar1_DateChanged (ByVal sender As System.Object, ByVal e As System.Windows.Forms.DateR angeEventA rgs) Handles MonthCalendar1.DateChanged
If (MonthCalendar1.SelectionR ange.Start & "").Trim.Length > 0 Then
adate.Text = MonthCalendar1.SelectionRa nge.Start
MonthCalendar1.Visible = False
Else
adate.Text = ""
End If
End Sub
Thank you
Private Sub MonthCalendar1_DateChanged
If (MonthCalendar1.SelectionR
adate.Text = MonthCalendar1.SelectionRa
MonthCalendar1.Visible = False
Else
adate.Text = ""
End If
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank you
Anthony