<?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 : Problem attaching calendar to datepicker</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Problem attaching calendar to datepicker]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 06:23:28 +0000</pubDate>
  <lastBuildDate>Tue, 16 May 2006 04:44:29 +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=4215</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[Problem attaching calendar to datepicker : Ah yes, that works perfect!  Thanks...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4215&amp;PID=12950&amp;title=problem-attaching-calendar-to-datepicker#12950</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1773">glennj</a><br /><strong>Subject:</strong> 4215<br /><strong>Posted:</strong> 16 May 2006 at 4:44am<br /><br /><P>Ah yes, that works perfect! <IMG src="http://forum.codejock.com/smileys/smiley1.gif" border="0"></P><P>Thanks for your prompt help...</P>]]>
   </description>
   <pubDate>Tue, 16 May 2006 04:44:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4215&amp;PID=12950&amp;title=problem-attaching-calendar-to-datepicker#12950</guid>
  </item> 
  <item>
   <title><![CDATA[Problem attaching calendar to datepicker : Hi,Note that AxOOO classes are...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4215&amp;PID=12942&amp;title=problem-attaching-calendar-to-datepicker#12942</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4215<br /><strong>Posted:</strong> 15 May 2006 at 5:33pm<br /><br />Hi,<br><br>Note that AxOOO classes are VB.NET wrappers on top of OCX objects. So far, to fix up your code, just change the last line to the:<br><table width="99%"><tr><td><pre class="BBcode"><br>AxDatePicker1.AttachToCalendar(AxCalendarControl1.GetOcx())<br></pre></td></tr></table><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Mon, 15 May 2006 17:33:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4215&amp;PID=12942&amp;title=problem-attaching-calendar-to-datepicker#12942</guid>
  </item> 
  <item>
   <title><![CDATA[Problem attaching calendar to datepicker : I&amp;#039;m running vb.net application...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4215&amp;PID=12936&amp;title=problem-attaching-calendar-to-datepicker#12936</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1773">glennj</a><br /><strong>Subject:</strong> 4215<br /><strong>Posted:</strong> 15 May 2006 at 12:36pm<br /><br /><P>I'm running vb.net application and have the calendar control and datepicker control on the same form. </P><P>I have added code in the form's load subroutine to attach the calendar to the date picker but it errors when it comes to running the program <IMG src="http://forum.codejock.com/smileys/smiley5.gif" border="0"></P><P>Error is "Additional information: Specified cast is not valid.". It runs fine without the attachtocalendar command... I'm confused, can anyone help?</P><P>Code is</P><P><table width="99%"><tr><td><pre class="BBcode"></P><FONT size=2><FONT size=2><P></FONT><FONT color=#0000ff size=2>Private</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>Sub</FONT><FONT size=2> frmDiary_Load(</FONT><FONT color=#0000ff size=2>ByVal</FONT><FONT size=2> sender </FONT><FONT color=#0000ff size=2>As</FONT><FONT size=2> System.Object, </FONT><FONT color=#0000ff size=2>ByVal</FONT><FONT size=2> e </FONT><FONT color=#0000ff size=2>As</FONT><FONT size=2> System.EventArgs) </FONT><FONT color=#0000ff size=2>Handles</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>MyBase</FONT><FONT size=2>.Load</P><P></FONT><FONT color=#008000 size=2>' Load diary entries</P></FONT><FONT size=2><P> AxCalendarControl1.Options.EnableInPlaceEditEventSubject_ByM ouseClick = </FONT><FONT color=#0000ff size=2>False</P></FONT><FONT size=2><P> AxCalendarControl1.Options.EnableInPlaceEditEventSubject_Aft erEventResize = </FONT><FONT color=#0000ff size=2>False</P></FONT><FONT size=2><P> AxCalendarControl1.Options.EnableInPlaceEditEventSubject_ByF 2 = </FONT><FONT color=#0000ff size=2>False</P></FONT><FONT size=2><P> AxCalendarControl1.Options.EnableInPlaceEditEventSubject_ByT ab = </FONT><FONT color=#0000ff size=2>False</P></FONT><FONT size=2><P>AxCalendarControl1.Options.EnableInPlaceCreateEvent = </FONT><FONT color=#0000ff size=2>False</P></FONT><FONT size=2><P>AxCalendarControl1.Options.UseOutlookFontGlyphs = </FONT><FONT color=#0000ff size=2>False</P><P>&nbsp;</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>Dim</FONT><FONT size=2> NewEvent </FONT><FONT color=#0000ff size=2>As</FONT><FONT size=2> CalendarEvent, Recurrence </FONT><FONT color=#0000ff size=2>As</FONT><FONT size=2> CalendarRecurrencePattern</P><P>NewEvent = AxCalendarControl1.DataProvider.CreateEvent</P><P>NewEvent.Subject = "Valuation of 51 Adelphi Street, Campbell Park"</P><P>NewEvent.StartTime = #5/15/2006 3:00:00 PM#</P><P>NewEvent.EndTime = #5/15/2006 4:00:00 PM#</P><P>NewEvent.BusyStatus = CalendarEventBusyStatus.xtpCalendarBusyStatusBusy</P><P>NewEvent.Description = "Some nice notes here..."</P><P>NewEvent.Location = "Campbell Park"</P><P>NewEvent.Label = 1</P><P>AxCalendarControl1.DataProvider.AddEvent(NewEvent)</P><P>NewEvent = AxCalendarControl1.DataProvider.CreateEvent</P><P>NewEvent.Subject = "Valuation of The Old Gardens, Staverton"</P><P>NewEvent.StartTime = #5/16/2006 3:00:00 PM#</P><P>NewEvent.EndTime = #5/16/2006 4:00:00 PM#</P><P>NewEvent.BusyStatus = CalendarEventBusyStatus.xtpCalendarBusyStatusBusy</P><P>NewEvent.Description = "Some nice notes here..."</P><P>NewEvent.Location = "Campbell Park"</P><P>NewEvent.Label = 2</P><P>AxCalendarControl1.DataProvider.AddEvent(NewEvent)</P><P>NewEvent = AxCalendarControl1.DataProvider.CreateEvent</P><P>NewEvent.Subject = "Valuation of 31 Millfields, Writtle"</P><P>NewEvent.StartTime = #5/18/2006 3:00:00 PM#</P><P>NewEvent.EndTime = #5/18/2006 4:00:00 PM#</P><P>NewEvent.BusyStatus = CalendarEventBusyStatus.xtpCalendarBusyStatusBusy</P><P>NewEvent.Description = "Some nice notes here..."</P><P>NewEvent.Location = "Campbell Park"</P><P>NewEvent.Label = 3</P><P>AxCalendarControl1.DataProvider.AddEvent(NewEvent)</P><P>AxCalendarControl1.Populate()</P><P>AxCalendarControl1.DayView.ScrollToWorkDayBegin()</P><P>AxDatePicker1.AttachToCalendar(AxCalendarControl1)</P><P></FONT><FONT color=#0000ff size=2>End</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>Sub</P></FONT></FONT><P></pre></td></tr></table></P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 15 May 2006 12:36:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4215&amp;PID=12936&amp;title=problem-attaching-calendar-to-datepicker#12936</guid>
  </item> 
 </channel>
</rss>