Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - How to hide events
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to hide events

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

Joined: 11 March 2005
Status: Offline
Points: 107
Post Options Post Options   Thanks (0) Thanks(0)   Quote younicke Quote  Post ReplyReply Direct Link To This Post Topic: How to hide events
    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.


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: 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
 
 
Back to Top
younicke View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 March 2005
Status: Offline
Points: 107
Post Options Post Options   Thanks (0) Thanks(0)   Quote younicke Quote  Post ReplyReply Direct Link To This Post Posted: 26 February 2008 at 11:03am
thanks again dentor!
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.141 seconds.