<?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 : Implementing custom event handlers in .NET</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Implementing custom event handlers in .NET]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 23:55:15 +0000</pubDate>
  <lastBuildDate>Fri, 15 Sep 2006 08:08:07 +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=4933</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[Implementing custom event handlers in .NET :  Serge,Strange indeed, but I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4933&amp;PID=15725&amp;title=implementing-custom-event-handlers-in-net#15725</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2293">zotteLORRE</a><br /><strong>Subject:</strong> 4933<br /><strong>Posted:</strong> 15 September 2006 at 8:08am<br /><br />Serge,<br><br><br>Strange indeed, but I guess the problem was somewhere (?) in my code.<br><br>After lots of debugging, I decided to start from scratch and use the VB6 sample as an example (and read the documentation...).<br><br>A little bit embarassing, since I didn't manage to find the bug... <img src="http://forum.codejock.com/smileys/smiley9.gif" border="0" align="absmiddle"><br><br>Anyway, everything works fine now!<br><br>Thanks for your time,<br><br><br>Laurent<br>]]>
   </description>
   <pubDate>Fri, 15 Sep 2006 08:08:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4933&amp;PID=15725&amp;title=implementing-custom-event-handlers-in-net#15725</guid>
  </item> 
  <item>
   <title><![CDATA[Implementing custom event handlers in .NET : Hi Laurent,   This is strange....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4933&amp;PID=15406&amp;title=implementing-custom-event-handlers-in-net#15406</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4933<br /><strong>Posted:</strong> 01 September 2006 at 6:55am<br /><br />Hi Laurent,<br><br><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">This is strange. I have just tested this -- added 3 empty handlers and all 3 events are coming fine.<br><br></span></div><div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">DoUpdateEvent comes when you move/resize/edit existing event in the calendar.<br><br></span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;"> </span></div></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">My code is like the following:</span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span></div><div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">Private</span></div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">Sub</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> frmMain1_Load(</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">ByVal</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> sender </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">As</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> System.Object, </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">ByVal</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> e </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">As</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> System.EventArgs) </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">Handles</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">MyBase</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">.Load</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span></div><div>&nbsp;&nbsp;<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"></span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">CalendarControl.SetDataProvider("Provider=CUSTOM;")</span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span></div><div>&nbsp;&nbsp;<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"></span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">CalendarControl.DataProvider.Open()</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(255, 0, 0); : transparent; font-weight: bold;">' Ensure that you call Open!</span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">End</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">Sub<br><br></span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;"> </span></div></div><div><div></div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">Private</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">Sub</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> CalendarControl_DoCreateEvent(</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">ByVal</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> sender </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">As</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">Object</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">, </span><div>&nbsp;&nbsp;<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"></span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">ByVal</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> e </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">As</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> AxXtremeCalendarControl._DCalendarControlEvents_DoCreateEventEvent) </span></div><div>&nbsp;&nbsp;<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"></span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">Handles</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> CalendarControl.DoCreateEvent</span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">End</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">Sub<br><br></span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;"> </span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">Private</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">Sub</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> CalendarControl_DoRetrieveDayEvents(</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">ByVal</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> sender </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">As</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">Object</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">, </span></div><div>&nbsp;&nbsp;<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">               </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">ByVal</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> e </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">As</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> AxXtremeCalendarControl._DCalendarControlEvents_DoRetrieveDayEventsEvent) </span></div><div>&nbsp;&nbsp;<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"></span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">Handles</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> CalendarControl.DoRetrieveDayEvents</span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">End</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">Sub<br><br></span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">Private</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">Sub</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> CalendarControl_DoUpdateEvent(</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">ByVal</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> sender </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">As</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">Object</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">, </span></div><div>&nbsp;&nbsp;<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">                </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">ByVal</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> e </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">As</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> AxXtremeCalendarControl._DCalendarControlEvents_DoUpdateEventEvent) </span></div><div>&nbsp;&nbsp;<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"></span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">Handles</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> CalendarControl.DoUpdateEvent</span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">End</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">Sub</span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span></div></div><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Fri, 01 Sep 2006 06:55:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4933&amp;PID=15406&amp;title=implementing-custom-event-handlers-in-net#15406</guid>
  </item> 
  <item>
   <title><![CDATA[Implementing custom event handlers in .NET :  Hi,I&amp;#039;m busy evaluating...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4933&amp;PID=15354&amp;title=implementing-custom-event-handlers-in-net#15354</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2293">zotteLORRE</a><br /><strong>Subject:</strong> 4933<br /><strong>Posted:</strong> 31 August 2006 at 5:42am<br /><br />Hi,<br><br><br>I'm busy evaluating the CalendarPro Active-X in a VB.NET dev enviroment for our company, and have encountered some problems implementing custom event handlers for a MySQL data source.<br><br>Implementing doRetrieveDayEvents &amp; doCreateEvent, for example, works fine, but doUpdateEvent doesn't get fired at all.<br><br>I've implemented following code directly in the frmMain class:<br><br><br><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Private Sub CalendarControl_doRetrieveDayEvents(ByVal sender As System.Object, ByVal e As AxXtremeCalendarControl._DCalendarControlEvents_DoRetrieveDayEventsEvent) Handles CalendarControl.DoRetrieveDayEvents<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dbController.doQuerySelectEvents(e.dtDay, e.events, CalendarControl.DataProvider, nUserID)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End Sub<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Private Sub CalendarControl_doCreateEvent(ByVal sender As System.Object, ByVal e As AxXtremeCalendarControl._DCalendarControlEvents_DoCreateEventEvent) Handles CalendarControl.DoCreateEvent<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dbController.doQueryInsertEvent(e.newEventID, e.pEvent, CalendarControl.DataProvider, nUserID, e.bResult)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End Sub<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Private Sub CalendarControl_doUpdateEvent(ByVal sender As System.Object, ByVal e As AxXtremeCalendarControl._DCalendarControlEvents_DoUpdateEventEvent) Handles CalendarControl.DoUpdateEvent<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBox.Show("test doupdateevent") 'temp<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'dbController.doQueryUpdateEvent(e.pEvent, CalendarControl.DataProvider, nUserID, e.bResult)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End Sub<br><br><br></font>Am I wrong putting above code directly in the main form?<br><br>Thanks in advance,<br><br><br>Laurent<br>]]>
   </description>
   <pubDate>Thu, 31 Aug 2006 05:42:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4933&amp;PID=15354&amp;title=implementing-custom-event-handlers-in-net#15354</guid>
  </item> 
 </channel>
</rss>