<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Select an event in the calender</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Select an event in the calender]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 01:07:56 +0000</pubDate>
  <lastBuildDate>Tue, 18 Mar 2008 04:04:26 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=9680</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Select an event in the calender : Small addition, another way to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9680&amp;PID=32358&amp;title=select-an-event-in-the-calender#32358</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3684">dwise</a><br /><strong>Subject:</strong> 9680<br /><strong>Posted:</strong> 18 March 2008 at 4:04am<br /><br />Small addition, another way to select an event by it's key: <DIV>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">Private Sub SelectEventInView(ByRef prmCalendar As XtremeCalendarControl.CalendarControl, prmAgendaId As Long)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Dim objViewGroup As XtremeCalendarControl.CalendarViewGroup<BR>&nbsp;&nbsp;&nbsp; Dim objViewEvent As XtremeCalendarControl.CalendarViewEvent<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; For Each objViewGroup In prmCalendar.ActiveView(0).ViewGroups<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For Each objViewEvent In objViewGroup.ViewEvents<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If objViewEvent.Event.id = prmAgendaId Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; objViewEvent.Selected = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next<BR>&nbsp;&nbsp;&nbsp; Next<BR>&nbsp;&nbsp;&nbsp; <BR>End Sub</FONT></DIV><DIV><FONT face="Courier New"></FONT>&nbsp;</DIV><DIV><FONT face="Arial, Helvetica, sans-serif">Note: apparantly this only works if the view is set to week or day view.</FONT></DIV>]]>
   </description>
   <pubDate>Tue, 18 Mar 2008 04:04:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9680&amp;PID=32358&amp;title=select-an-event-in-the-calender#32358</guid>
  </item> 
  <item>
   <title><![CDATA[Select an event in the calender : Very nice !Where did you find...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9680&amp;PID=31736&amp;title=select-an-event-in-the-calender#31736</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3729">ericl</a><br /><strong>Subject:</strong> 9680<br /><strong>Posted:</strong> 29 February 2008 at 3:51am<br /><br /><div><br>Very nice !<br><br>Where did you find in the help file that you can give an index to Calendar.ActiveView ?<br><br>In the 11.2.2 calendarcontrol help file i see :<br>Public Property ActiveView() As CalendarView<br><br>So i can't imagine we give an index to this method ?!<br><br>Thanks for your help<br>eric l.<br><br></div>]]>
   </description>
   <pubDate>Fri, 29 Feb 2008 03:51:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9680&amp;PID=31736&amp;title=select-an-event-in-the-calender#31736</guid>
  </item> 
  <item>
   <title><![CDATA[Select an event in the calender : Thanks for the help.. That worked.....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9680&amp;PID=31723&amp;title=select-an-event-in-the-calender#31723</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3777">paul_ont</a><br /><strong>Subject:</strong> 9680<br /><strong>Posted:</strong> 28 February 2008 at 5:59pm<br /><br />Thanks for the help..&nbsp; That worked.. <img src="https://forum.codejock.com/smileys/smiley1.gif" border="0">]]>
   </description>
   <pubDate>Thu, 28 Feb 2008 17:59:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9680&amp;PID=31723&amp;title=select-an-event-in-the-calender#31723</guid>
  </item> 
  <item>
   <title><![CDATA[Select an event in the calender :  For the SelectViewEvent method,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9680&amp;PID=31549&amp;title=select-an-event-in-the-calender#31549</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1646">dentor</a><br /><strong>Subject:</strong> 9680<br /><strong>Posted:</strong> 25 February 2008 at 3:16am<br /><br /><DIV></DIV><DIV></DIV>For the SelectViewEvent method, we must specify a ViewEvent and not an Event, so we must retrieve the ViewEvent in the ActiveView of the Calendar.<DIV>&nbsp;</DIV><DIV>If we suppose to have the Event display on&nbsp;the calendar, and you get the day and the id property of the event, this sub find it on the ActiveView and select it:&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Sub SelectThisEvent(FindDt As Date, FindId As Long)<BR>Dim ViewEvt As CalendarViewEvent, i As Long, Ndx As Long<BR>&nbsp;&nbsp;&nbsp; With Calendar<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ndx = -1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For i = 0 To .ActiveView.DaysCount - 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If .ActiveView(i).Date = DateValue(FindDt) Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ndx = i<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit For<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Ndx &gt; -1 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For Each ViewEvt In .ActiveView(Ndx)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If FindId = ViewEvt.Event.Id Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ActiveView.SelectViewEvent ViewEvt, True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; End With<BR>End Sub</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 25 Feb 2008 03:16:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9680&amp;PID=31549&amp;title=select-an-event-in-the-calender#31549</guid>
  </item> 
  <item>
   <title><![CDATA[Select an event in the calender : Thanks.. still can&amp;#039;t figure...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9680&amp;PID=31543&amp;title=select-an-event-in-the-calender#31543</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3777">paul_ont</a><br /><strong>Subject:</strong> 9680<br /><strong>Posted:</strong> 24 February 2008 at 7:43pm<br /><br />Thanks..&nbsp; still can't figure out how to get the selectviewevent to work.. Can anyone post an example using the selectviewevent&nbsp;selecting an event by its ID.&nbsp; ]]>
   </description>
   <pubDate>Sun, 24 Feb 2008 19:43:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9680&amp;PID=31543&amp;title=select-an-event-in-the-calender#31543</guid>
  </item> 
  <item>
   <title><![CDATA[Select an event in the calender : Hello,  You can use SelectViewEvent...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9680&amp;PID=31536&amp;title=select-an-event-in-the-calender#31536</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1646">dentor</a><br /><strong>Subject:</strong> 9680<br /><strong>Posted:</strong> 24 February 2008 at 1:03pm<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>You can use SelectViewEvent Method&nbsp;to select or unselect an event.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 24 Feb 2008 13:03:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9680&amp;PID=31536&amp;title=select-an-event-in-the-calender#31536</guid>
  </item> 
  <item>
   <title><![CDATA[Select an event in the calender : Is there any way programmatically...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9680&amp;PID=31533&amp;title=select-an-event-in-the-calender#31533</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3777">paul_ont</a><br /><strong>Subject:</strong> 9680<br /><strong>Posted:</strong> 24 February 2008 at 12:23pm<br /><br />Is there any way programmatically select an event in the calender, highlighting the event the same way as it would if you manually selected the event in the control?]]>
   </description>
   <pubDate>Sun, 24 Feb 2008 12:23:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9680&amp;PID=31533&amp;title=select-an-event-in-the-calender#31533</guid>
  </item> 
 </channel>
</rss>