<?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 : Setting Date Selected to Date Other Than Today</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Setting Date Selected to Date Other Than Today]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 14 Apr 2026 16:29:16 +0000</pubDate>
  <lastBuildDate>Tue, 24 Oct 2006 03:52:02 +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=5325</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[Setting Date Selected to Date Other Than Today : Well, this looks to be a small...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5325&amp;PID=16754&amp;title=setting-date-selected-to-date-other-than-today#16754</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 5325<br /><strong>Posted:</strong> 24 October 2006 at 3:52am<br /><br />Well, this looks to be a small bug in calendar. Date Picker should be updated inside AttachToCalendar call. To be fixed.<br>&nbsp;<br>But for now to ensure this update just call AttachToCalendar before setting up Calendar1.ViewType or ShowDay (or change ViewType to ensure that).<br>&nbsp;<br>Example:<br><table width="99%"><tr><td><pre class="BBcode"><br>DatePicker1.AttachToCalendar Calendar1<br>&nbsp;<br>Calendar1.ViewType = xtpCalendarWeekView<br>Calendar1.ViewType = xtpCalendarDayView<br><br>' Populate method should be used to read data and update calendar<br>Calendar1.Populate <br></pre></td></tr></table><br><br>--<br>WBR,<br>Serge <br>]]>
   </description>
   <pubDate>Tue, 24 Oct 2006 03:52:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5325&amp;PID=16754&amp;title=setting-date-selected-to-date-other-than-today#16754</guid>
  </item> 
  <item>
   <title><![CDATA[Setting Date Selected to Date Other Than Today : Thanks Serge.  I&amp;#039;ve tried...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5325&amp;PID=16741&amp;title=setting-date-selected-to-date-other-than-today#16741</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=884">DDJJ</a><br /><strong>Subject:</strong> 5325<br /><strong>Posted:</strong> 23 October 2006 at 11:27am<br /><br />Thanks Serge.<DIV>&nbsp;</DIV><DIV>I've tried using variations of your code, with no luck.</DIV><DIV>&nbsp;</DIV><DIV>I can get the form to load with (1) the appropriate day selected in the calendar control,&nbsp;(2)&nbsp;the appropriate months displayed in the&nbsp;data picker control, and (3) with the appropriate days in bold where events exist.</DIV><DIV>&nbsp;</DIV><DIV>Although it looks like 9/1/2005 is already selected (and 9/1/2005 is bold, as it should be), the calendar control doesn't fill until I click on 9/1/2005 in the date picker???&nbsp; If I check during the Form_Activate event, my code tells me that the "Selected" date is Today???</DIV><DIV>&nbsp;</DIV><DIV>Dan</DIV>]]>
   </description>
   <pubDate>Mon, 23 Oct 2006 11:27:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5325&amp;PID=16741&amp;title=setting-date-selected-to-date-other-than-today#16741</guid>
  </item> 
  <item>
   <title><![CDATA[Setting Date Selected to Date Other Than Today : Note that attaching DatePicker...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5325&amp;PID=16711&amp;title=setting-date-selected-to-date-other-than-today#16711</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 5325<br /><strong>Posted:</strong> 22 October 2006 at 3:58pm<br /><br />Note that attaching DatePicker to Calendar affects only user's actions. Both controls do have their methods to change selection and active shown period, and you can use those methods to manipulate. Example which can be used on forms loading:<br><table width="99%"><tr><td><pre class="BBcode"><br>DatePicker1.Select #9/1/2005#<br>DatePicker1.EnsureVisibleSelection<br>Calendar1.ActiveView.ShowDay #9/1/2005#<br>DatePicker1.AttachToCalendar Calendar1<br></pre></td></tr></table><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Sun, 22 Oct 2006 15:58:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5325&amp;PID=16711&amp;title=setting-date-selected-to-date-other-than-today#16711</guid>
  </item> 
  <item>
   <title><![CDATA[Setting Date Selected to Date Other Than Today : Also, the above code DOES get...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5325&amp;PID=16666&amp;title=setting-date-selected-to-date-other-than-today#16666</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=884">DDJJ</a><br /><strong>Subject:</strong> 5325<br /><strong>Posted:</strong> 19 October 2006 at 4:13pm<br /><br />Also, the above code DOES get the DatePicker control to show the appropriate months, but the Calendar control always seems to display Today???]]>
   </description>
   <pubDate>Thu, 19 Oct 2006 16:13:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5325&amp;PID=16666&amp;title=setting-date-selected-to-date-other-than-today#16666</guid>
  </item> 
  <item>
   <title><![CDATA[Setting Date Selected to Date Other Than Today : Under certain circumstances when...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5325&amp;PID=16665&amp;title=setting-date-selected-to-date-other-than-today#16665</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=884">DDJJ</a><br /><strong>Subject:</strong> 5325<br /><strong>Posted:</strong> 19 October 2006 at 4:11pm<br /><br />Under certain circumstances when our users open the form with our calendar control, we want the first month shown in the DatePicker control to be September 2005 (this month has been pre-populated with events to display to the user).<DIV>&nbsp;</DIV><DIV>We no not seem to be able to get the DatePicker to have any date selected other than Today when our form loads.&nbsp; We've been trying variations of the following to get the DatePicker to load with 9/1/2005 selected:</DIV><DIV>&nbsp;</DIV><DIV>DatePicker1.ClearSelection<BR>DatePicker1.EnsureVisible #9/1/2005#<BR>DatePicker1.SelectRange #9/1/2005#, #9/1/2005#<BR>DatePicker1.Select #9/1/2005#<BR>DatePicker1.EnsureVisibleSelection<BR></DIV><DIV>Nothing seems to work.&nbsp; We always end up with today being the selected date.&nbsp; Any ideas why?</DIV><DIV>&nbsp;</DIV><DIV>Thanks, Dan</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 19 Oct 2006 16:11:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5325&amp;PID=16665&amp;title=setting-date-selected-to-date-other-than-today#16665</guid>
  </item> 
 </channel>
</rss>