<?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 : Selecting an event</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Selecting an event]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 07:58:16 +0000</pubDate>
  <lastBuildDate>Thu, 31 Aug 2006 19:09:13 +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=4930</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[Selecting an event : Hello again,   I tried the code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4930&amp;PID=15392&amp;title=selecting-an-event#15392</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2241">tomgriff</a><br /><strong>Subject:</strong> 4930<br /><strong>Posted:</strong> 31 August 2006 at 7:09pm<br /><br />Hello again, <DIV>&nbsp;</DIV><DIV>I tried the code you sent me in the previous reply.</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>&nbsp;</DIV><DIV>Dim ModEvent As CalendarEvent<BR><FONT color=#ff0000>Dim ve As CalendarViewEvent</FONT></DIV><DIV>&nbsp;</DIV><DIV>iApptID = NZ(Me.grdClientDataApptDate.ItemData(Me.grdClientDataApptDate.ItemIndex), 0)<BR>lngEventID = CLng(NZ(VLookup("EventID", GetDBName(), "tblDataClientApptDate", "ApptID = " &amp; iApptID), 0))<BR>dteApptDate = NZ(VLookup("ApptDate", GetDBName(), "tblDataClientApptDate", "ApptID = " &amp; iApptID), 0)</DIV><DIV>Set ModEvent = frmAppointmentCalendar.calCalendar.DataProvider.GetEvent(lngEventID)</DIV><DIV>If ModEvent Is Nothing Then<BR>&nbsp; MsgBox "There is a problem with the appointment you are trying to open.", vbCritical + vbOKOnly<BR>Else<BR>&nbsp; frmMain.ShowPanes PANE_APPOINTMENT_CALENDAR<BR>&nbsp; With frmAppointmentCalendar<BR>&nbsp;&nbsp;&nbsp; .wndDatePicker.EnsureVisible dteApptDate<BR>&nbsp;&nbsp;&nbsp; .wndDatePicker.Select dteApptDate<BR>&nbsp;&nbsp;&nbsp; .calCalendar.ActiveView.ShowDay dteApptDate<BR>&nbsp;&nbsp;&nbsp; .calCalendar.DayView.ScrollV .calCalendar.DayView.GetCellNumber(TimeValue(ModEvent.StartTime))<BR>&nbsp;<FONT color=#cc0000>&nbsp;&nbsp;&nbsp; For Each ve In .calCalendar.ActiveView(0)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If ve.Event.Id = ModEvent.Id Then .calCalendar.ActiveView.SelectViewEvent ve, True<BR>&nbsp;&nbsp;&nbsp;&nbsp; Next<BR></FONT>&nbsp;&nbsp;&nbsp; .calCalendar.Populate<BR>&nbsp; End With<BR>End If<BR></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>it seems that ve is always nothing, the for each loop is not run, so there is no event selected.</DIV><DIV>&nbsp;</DIV><DIV>I must have something wrong here.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 31 Aug 2006 19:09:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4930&amp;PID=15392&amp;title=selecting-an-event#15392</guid>
  </item> 
  <item>
   <title><![CDATA[Selecting an event : Thanks for the quick response.  I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4930&amp;PID=15380&amp;title=selecting-an-event#15380</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2241">tomgriff</a><br /><strong>Subject:</strong> 4930<br /><strong>Posted:</strong> 31 August 2006 at 2:55pm<br /><br />Thanks for the quick response.<DIV>&nbsp;</DIV><DIV>I will give this a try.</DIV><DIV>&nbsp;</DIV><DIV>This forum is a great resource for the controls.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 31 Aug 2006 14:55:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4930&amp;PID=15380&amp;title=selecting-an-event#15380</guid>
  </item> 
  <item>
   <title><![CDATA[Selecting an event : Ok, if you also want to select...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4930&amp;PID=15376&amp;title=selecting-an-event#15376</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4930<br /><strong>Posted:</strong> 31 August 2006 at 12:58pm<br /><br />Ok, if you also want to select this appointment view, add a following piece of code just before calling .Populate:<br><table width="99%"><tr><td><pre class="BBcode"><br>Dim ve As CalendarViewEvent<br>For Each ve In calCalendar.ActiveView(0)<br>&nbsp;&nbsp;&nbsp; If ve.Event.Id = ModEvent.Id Then calCalendar.ActiveView.SelectViewEvent ve, True<br>Next<br></pre></td></tr></table><br><br>ps: if you also want a top blue selection border to be visible, scroll day view to Cell Number - 1 of event's start time.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Thu, 31 Aug 2006 12:58:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4930&amp;PID=15376&amp;title=selecting-an-event#15376</guid>
  </item> 
  <item>
   <title><![CDATA[Selecting an event : Hello,  Thanks for the help.  The...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4930&amp;PID=15374&amp;title=selecting-an-event#15374</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2241">tomgriff</a><br /><strong>Subject:</strong> 4930<br /><strong>Posted:</strong> 31 August 2006 at 12:18pm<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>Thanks for the help.</DIV><DIV>&nbsp;</DIV><DIV>The DayScroll works perfect for putting the setselection into the calendar veiw when it is late in the day.</DIV><DIV>&nbsp;</DIV><DIV>The thing that is happening is that the&nbsp;appointment (event) is not being selected, the time period behind the appoinment (event) is being selected.&nbsp; I&nbsp;would like for&nbsp;the actual appointment (event) &nbsp;to be selected.</DIV><DIV>&nbsp;</DIV><DIV>Once again, thanks for the help.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 31 Aug 2006 12:18:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4930&amp;PID=15374&amp;title=selecting-an-event#15374</guid>
  </item> 
  <item>
   <title><![CDATA[Selecting an event : Hi,As far as I understand, you&amp;#039;re...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4930&amp;PID=15364&amp;title=selecting-an-event#15364</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4930<br /><strong>Posted:</strong> 31 August 2006 at 8:49am<br /><br />Hi,<br><br>As far as I understand, you're trying to scroll in a Day view (up or down). In this case you should use DayView.ScrollV method. <br><br>So, the body of your method could be as follows:<br><table width="99%"><tr><td><pre class="BBcode"><br>wndDatePicker.EnsureVisible dteApptDate<br>wndDatePicker.Select dteApptDate<br>calCalendar.ActiveView.ShowDay dteApptDate<br>calCalendar.DayView.ScrollV calCalendar.DayView.GetCellNumber(TimeValue(ModEvent.StartTime))<br>calCalendar.ActiveView.SetSelection ModEvent.StartTime, ModEvent.EndTime, False<br>calCalendar.Populate<br></pre></td></tr></table><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Thu, 31 Aug 2006 08:49:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4930&amp;PID=15364&amp;title=selecting-an-event#15364</guid>
  </item> 
  <item>
   <title><![CDATA[Selecting an event : Hi,  I have a problem with selecting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4930&amp;PID=15349&amp;title=selecting-an-event#15349</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2241">tomgriff</a><br /><strong>Subject:</strong> 4930<br /><strong>Posted:</strong> 31 August 2006 at 1:37am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I have a problem with selecting an event in the calendar.</DIV><DIV>&nbsp;</DIV><DIV>I have a client database in access.&nbsp; When I add an appointment in the calendar, I also add the appointment in the Client DB.&nbsp; I also add the event id to the client db.</DIV><DIV>&nbsp;</DIV><DIV>I show the appointments for each client in a grid on the client info page.</DIV><DIV>&nbsp;</DIV><DIV>I want to dbl-clk on an appointment in the grid and have the calendar open with the appointment selected and centered in&nbsp; the calendar.</DIV><DIV>&nbsp;</DIV><DIV>I have the calendar opening, and I am using the setselection&nbsp; to highlight the time for the appointment.&nbsp; The calendar does not move the select into view if it is late in the day.</DIV><DIV>&nbsp;</DIV><DIV>This is the code I am using on the grid_dbl-clk</DIV><DIV>&nbsp;</DIV><DIV>&nbsp; frmMain.ShowPanes PANE_APPOINTMENT_CALENDAR<BR>&nbsp; With frmAppointmentCalendar<BR>&nbsp;&nbsp;&nbsp; .wndDatePicker.EnsureVisible dteApptDate<BR>&nbsp;&nbsp;&nbsp; .wndDatePicker.Select dteApptDate<BR>&nbsp;&nbsp;&nbsp; .calCalendar.ActiveView.ShowDay dteApptDate<BR>&nbsp;&nbsp;&nbsp; .calCalendar.ActiveView.SetSelection ModEvent.StartTime, ModEvent.EndTime, False<BR>&nbsp;&nbsp;&nbsp; .calCalendar.RedrawControl<BR>&nbsp; End With<BR></DIV><DIV>I am using Calendar 10.2</DIV><DIV>&nbsp;</DIV><DIV>I would appreciate any help.</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance.</DIV>]]>
   </description>
   <pubDate>Thu, 31 Aug 2006 01:37:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4930&amp;PID=15349&amp;title=selecting-an-event#15349</guid>
  </item> 
 </channel>
</rss>