<?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 : Strange Problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Strange Problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 14 Apr 2026 07:19:55 +0000</pubDate>
  <lastBuildDate>Sun, 07 May 2006 18:19:01 +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=4139</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[Strange Problem : ahh sweet.Thought it was something...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4139&amp;PID=12742&amp;title=strange-problem#12742</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1945">dneilsen</a><br /><strong>Subject:</strong> 4139<br /><strong>Posted:</strong> 07 May 2006 at 6:19pm<br /><br />ahh sweet.<br>Thought it was something I had done (or had not done)<br>Thanks again sserge<br>]]>
   </description>
   <pubDate>Sun, 07 May 2006 18:19:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4139&amp;PID=12742&amp;title=strange-problem#12742</guid>
  </item> 
  <item>
   <title><![CDATA[Strange Problem :   this.MonthView.WeeksCount =...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4139&amp;PID=12713&amp;title=strange-problem#12713</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4139<br /><strong>Posted:</strong> 06 May 2006 at 2:05pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Quote" alt="Quote" style="vertical-align: text-bottom;" /> <br>this.MonthView.WeeksCount = weeksInMonth(_CurrentDate);<br></td></tr></table>&nbsp;<br><br>When you change MonthView.WeeksCount - you have to call Populate method first to adjust calendar view days collection. (should be done before accesssing ActiveView members)<br>&nbsp;<br>this.DataProvider.RemoveAllEvents();<br>this.Populate();<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Sat, 06 May 2006 14:05:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4139&amp;PID=12713&amp;title=strange-problem#12713</guid>
  </item> 
  <item>
   <title><![CDATA[Strange Problem : oh yeahI nearly forgot.... The...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4139&amp;PID=12691&amp;title=strange-problem#12691</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1945">dneilsen</a><br /><strong>Subject:</strong> 4139<br /><strong>Posted:</strong> 04 May 2006 at 10:28pm<br /><br />oh yeah<br>I nearly forgot.... <br>The debug output (from my addDebug command) is as follows<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Running Refresh Display<br>-- Set display to 6 weeks<br>---- Confirm 6 weeks<br>-- Redrawing control<br>-- Removing all events<br>-- Creating events for 42 days<br>--- Checking 25/09/2005<br>--- Checking 26/09/2005<br>--- Checking 27/09/2005<br>--- Checking 28/09/2005<br>--- Checking 29/09/2005<br>--- Checking 30/09/2005<br>--- Checking 1/10/2005<br>--- Adding event for day 1 - 10 hours<br>--- Checking 2/10/2005<br>--- Adding event for day 2 - 10 hours<br>--- Checking 3/10/2005<br>--- Adding event for day 3 - 10 hours<br>--- Checking 4/10/2005<br>--- Adding event for day 4 - 10 hours<br>--- Checking 5/10/2005<br>--- Adding event for day 5 - 10 hours<br>--- Checking 6/10/2005<br>--- Adding event for day 6 - 10 hours<br>--- Checking 7/10/2005<br>--- Adding event for day 7 - 10 hours<br>--- Checking 8/10/2005<br>--- Adding event for day 8 - 10 hours<br>--- Checking 9/10/2005<br>--- Adding event for day 9 - 10 hours<br>--- Checking 10/10/2005<br>--- Adding event for day 10 - 10 hours<br>--- Checking 11/10/2005<br>--- Adding event for day 11 - 10 hours<br>--- Checking 12/10/2005<br>--- Adding event for day 12 - 10 hours<br>--- Checking 13/10/2005<br>--- Adding event for day 13 - 10 hours<br>--- Checking 14/10/2005<br>--- Adding event for day 14 - 10 hours<br>--- Checking 15/10/2005<br>--- Adding event for day 15 - 10 hours<br>--- Checking 16/10/2005<br>--- Adding event for day 16 - 10 hours<br>--- Checking 17/10/2005<br>--- Adding event for day 17 - 10 hours<br>--- Checking 18/10/2005<br>--- Adding event for day 18 - 10 hours<br>--- Checking 19/10/2005<br>--- Adding event for day 19 - 10 hours<br>--- Checking 20/10/2005<br>--- Adding event for day 20 - 10 hours<br>--- Checking 21/10/2005<br>--- Adding event for day 21 - 10 hours<br>--- Checking 22/10/2005<br>--- Adding event for day 22 - 10 hours<br>--- Checking 23/10/2005<br>--- Adding event for day 23 - 10 hours<br>--- Checking 24/10/2005<br>--- Adding event for day 24 - 10 hours<br>--- Checking 25/10/2005<br>--- Adding event for day 25 - 10 hours<br>--- Checking 26/10/2005<br>--- Adding event for day 26 - 10 hours<br>--- Checking 27/10/2005<br>--- Adding event for day 27 - 10 hours<br>--- Checking 28/10/2005<br>--- Adding event for day 28 - 10 hours<br>--- Checking 29/10/2005<br>--- Adding event for day 29 - 10 hours<br>--- Checking 30/12/1899<br>--- Checking 30/12/1899<br>--- Checking 30/12/1899<br>--- Checking 30/12/1899<br>--- Checking 30/12/1899<br>--- Checking 30/12/1899<br>--- Checking 30/12/1899<br>-- Populating Data<br>-- Updating control<br></pre></td></tr></table><br><br><br>]]>
   </description>
   <pubDate>Thu, 04 May 2006 22:28:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4139&amp;PID=12691&amp;title=strange-problem#12691</guid>
  </item> 
  <item>
   <title><![CDATA[Strange Problem : I have encountered a strange occurance...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4139&amp;PID=12690&amp;title=strange-problem#12690</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1945">dneilsen</a><br /><strong>Subject:</strong> 4139<br /><strong>Posted:</strong> 04 May 2006 at 10:26pm<br /><br />I have encountered a strange occurance in the calendar control.&nbsp; Not sure if it is something I have done or not.<br><br>Here is the piece of code I am using<br><br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; public void RefreshMonth()<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; addDebug("Running Refresh Display");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //reset calendar formatting<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.MonthView.WeeksCount = weeksInMonth(_CurrentDate);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; addDebug("-- Set display to "+weeksInMonth(_CurrentDate)+" weeks");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; addDebug("---- Confirm "+this.MonthView.WeeksCount+" weeks");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; addDebug("-- Redrawing control");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //update all events<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; addDebug("-- Removing all events");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.DataProvider.RemoveAllEvents();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CalendarDataProvider pCalendarData = this.DataProvider;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pCalendarData.Create();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; addDebug("-- Creating events for "+this.ActiveView.DaysCount+" days");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for(int i=0; i&lt;this.ActiveView.DaysCount; i++)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CalendarViewDay cvd = this.ActiveView<em>;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; addDebug("--- Checking "+cvd.Date.ToShortDateString());<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(cvd.Date.Month != _CurrentDate.Month)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; continue;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int day = cvd.Date.Day;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int index = day-1;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; double data = Convert.ToDouble(_dataStore&#091;index&#093;);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; addDebug("--- Adding event for day "+day+" - "+data+" hours");<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CalendarEvent ptrEvent = pCalendarData.CreateEvent();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ptrEvent.StartTime = cvd.Date;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DateTime dtNow = cvd.Date;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ptrEvent.StartTime = dtNow;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dtNow = dtNow.AddDays(1);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ptrEvent.EndTime = dtNow;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ptrEvent.Subject = Convert.ToString(data);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ptrEvent.AllDayEvent = true;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ptrEvent.Location = "Hrs";<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ptrEvent.Label = 0;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pCalendarData.AddEvent(ptrEvent);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; addDebug("-- Populating Data");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pCalendarData.Save();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.Populate();&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //do final update<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; addDebug("-- Updating control");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.Update();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br></pre></td></tr></table><br><br>Now this all works fine except in one situation.<br>Lets say the calendar is showing August 2005 (which has 5 week rows in the calendar) and I change to October 2005 (which has 6).<br><br>What occurs is that CalendarViewDay's on the 6th row of the calendar dont seem to return correctly in the following line.<br>CalendarViewDay cvd = this.ActiveView<em>;<br>cvs.Date is always set to 30/12/1899<br><br>In my code this results in the two events that should be created on that 6th line, to not be created.<br><br>However, if I then run the exact same function again, immediately after the failed attempt, it works fine.<br><br><br>My question is...<br>I am quite new to these controls so it is quite possible I am not doing something correctly...&nbsp;&nbsp; Is it my code (or something i have done) or is it a bug?<br><br><br><br>]]>
   </description>
   <pubDate>Thu, 04 May 2006 22:26:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4139&amp;PID=12690&amp;title=strange-problem#12690</guid>
  </item> 
 </channel>
</rss>