<?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 : Making Sure &#069;vent is Visible</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Making Sure &#069;vent is Visible]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 07:40:44 +0000</pubDate>
  <lastBuildDate>Fri, 14 Oct 2005 13:57:39 +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=3021</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[Making Sure &#069;vent is Visible : Hi,  1. First problem looks strange,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3021&amp;PID=9046&amp;title=making-sure-event-is-visible#9046</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3021<br /><strong>Posted:</strong> 14 October 2005 at 1:57pm<br /><br />Hi,<br /><br />1. First problem looks strange, but see the next point...<br /><br />2. Use one more quite useful method of calendar: RedrawControl.<br /><br />&nbsp;&nbsp;&nbsp;Some methods of calendar don't redraw control automatically to avoid "blinking" during adjusting.<br /> <br />3. Suggestion:<br />&nbsp;&nbsp;&nbsp;If you don't need to save events - You do not need these lines of code, because calendar is created by default with memory data provider.<br /><br />&nbsp;&nbsp;&nbsp;May be .DataProvider.RemoveAllEvents is usefull - depending of your form using.  <br /> <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ConnectionString = "Provider=XML;Data Source=" & App.Path & "\Events.xml"<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SetDataProvider ConnectionString<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not .DataProvider.Open Then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;.DataProvider.Create <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .DataProvider.RemoveAllEvents  'We don't want previously saved events<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .DataProvider.Save<br /><br />--<br />HTH,<br />Serge]]>
   </description>
   <pubDate>Fri, 14 Oct 2005 13:57:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3021&amp;PID=9046&amp;title=making-sure-event-is-visible#9046</guid>
  </item> 
  <item>
   <title><![CDATA[Making Sure &#069;vent is Visible : We are setting up a Calendar control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3021&amp;PID=9020&amp;title=making-sure-event-is-visible#9020</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=884">DDJJ</a><br /><strong>Subject:</strong> 3021<br /><strong>Posted:</strong> 12 October 2005 at 12:36pm<br /><br /><P>We are setting up a Calendar control to give our users the option of using the control to change the times for a specific event by dragging an event, or by using the mouse to drag the start or end times of an event.&nbsp; The code we've been trying is shown below.</P><P>Two problems.&nbsp; When our form opens up, the calendar control is frequently not visible.&nbsp; When I click on the area where the calendar control should be, it shows up, but not until then.&nbsp; ???</P><P>Second problem.&nbsp; We set up the event to be edited by the user in code (see below).&nbsp; This event could be at the beginning of a day or at the end, so we want the control to scroll forward to make sure the event is visible to the user.&nbsp; What we're doing is not working...any ideas why not?</P><P>ConnectionString = "Provider=XML;Data Source=" &amp; App.Path &amp; "\Events.xml"<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; With CalendarControl1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SetDataProvider ConnectionString<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not .DataProvider.Open Then<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; .DataProvider.Create<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .DataProvider.RemoveAllEvents&nbsp; 'We don't want previously saved events<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .DataProvider.Save<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Options.FirstDayOfTheWeek = g_lFirstDayOfWeek<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .DayView.TimeScale = g_lTimeScale<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Options.WorkDayStartTime = TimeValue(g_sStartTime)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Options.WorkDayEndTime = TimeValue(g_sEndTime)<BR>&nbsp;&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; DatePicker1.MaxSelectionCount = 1<BR>&nbsp;&nbsp;&nbsp; DatePicker1.AttachToCalendar CalendarControl1</P><P>&nbsp;&nbsp;&nbsp; CalendarControl1.ActiveView.ShowDay CDate(cbpStartDate.Text), True<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Set m_oEvent = CalendarControl1.DataProvider.CreateEvent<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; m_oEvent.StartTime = cbpStartDate.Text &amp; " " &amp; cbpTimes(0).Text<BR>&nbsp;&nbsp;&nbsp; m_oEvent.EndTime = cbpStartDate.Text &amp; " " &amp; cbpTimes(1).Text</P><P>&nbsp;&nbsp;&nbsp; CalendarControl1.DataProvider.AddEvent m_oEvent</P><P>&nbsp;&nbsp;&nbsp; CalendarControl1.Populate<BR> &nbsp;&nbsp;&nbsp;&nbsp;'CalendarControl1.DayView.ScrollToWo rkDayBegin 'We CAN get this line to&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; work<BR>'We CAN'T get the following to work<BR>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim lCellNo As Long<BR>''&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lCellNo = CalendarControl1.DayView.GetCellNumber(CDate("10/9/2005 1:00:00 PM"))<BR>''&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CalendarControl1.ActiveView.EnableVScroll True<BR>''&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CalendarControl1.DayView.ScrollV lCellNo</P>]]>
   </description>
   <pubDate>Wed, 12 Oct 2005 12:36:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3021&amp;PID=9020&amp;title=making-sure-event-is-visible#9020</guid>
  </item> 
 </channel>
</rss>