Disable Event MultiSelection |
Post Reply |
Author | |
Bernie
Senior Member Joined: 05 July 2007 Location: Taiwan Status: Offline Points: 109 |
Post Options
Thanks(0)
Posted: 02 February 2008 at 2:42am |
Dear Professionals: I would like to know how to let users select one sngle event only in the DayView.
Thanks!
|
|
Bernie Ho, Planning Manager + IELTS specialist + part-time programmer
Taiwan, R.O.C |
|
dentor
Senior Member Joined: 30 November 2005 Location: France Status: Offline Points: 102 |
Post Options
Thanks(0)
|
Hello Bernie,
I think you can put theses instructions in the SelectionChanged Event of the Calendar Control to prevent the selection of a second event:
Private Sub Calendar_SelectionChanged(ByVal SelType As XtremeCalendarControl.CalendarSelectionChanged)
If SelType <> xtpCalendarSelectionEvents Then Exit Sub Dim TotSelect As CalendarViewEvents Dim ViewEvt As CalendarViewEvent dim i as long
Set TotSelect = Calendar.ActiveView.GetSelectedEvents If TotSelect.Count > 1 Then For i=0 to TotSelect.Count - 2
TotSelect.ViewEvent(i).Selected = False Next End If
End Sub |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |