Print Page | Close Window

How to hide events

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=9706
Printed Date: 04 December 2024 at 1:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to hide events
Posted By: younicke
Subject: How to hide events
Date Posted: 26 February 2008 at 5:40am

does anyone known how to hide an event? say i have an event collection and i dont want some of it to be shown on the calendar.





Replies:
Posted By: dentor
Date Posted: 26 February 2008 at 7:33am
You can use Prepopulate event to hide some events in the Calendar display.
 
An example of code using to hide events with label property equal to 3:
 
Private Sub Calendar_PrePopulate(ByVal ViewGroup As XtremeCalendarControl.CalendarViewGroup, ByVal Events As XtremeCalendarControl.CalendarEvents)
Dim i As Long
    For i = Events.Count - 1 To 0 Step -1
        If Events(i).Label = 3 Then
            Events.Remove i
        End If
    Next
End Sub
 
 


Posted By: younicke
Date Posted: 26 February 2008 at 11:03am
thanks again dentor!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net