Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Disable Event MultiSelection
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Disable Event MultiSelection

 Post Reply Post Reply
Author
Message
Bernie View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 July 2007
Location: Taiwan
Status: Offline
Points: 109
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bernie Quote  Post ReplyReply Direct Link To This Post Topic: Disable Event MultiSelection
    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
Back to Top
dentor View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2005
Location: France
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote dentor Quote  Post ReplyReply Direct Link To This Post Posted: 02 February 2008 at 6:09am
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
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.