<?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 : Task Item Click Event Not Fired &amp; Skin Unload-OCX</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : General Discussion : Task Item Click Event Not Fired &amp; Skin Unload-OCX]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 04:48:28 +0000</pubDate>
  <lastBuildDate>Tue, 15 May 2007 01:48:42 +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=7122</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[Task Item Click Event Not Fired &amp; Skin Unload-OCX : Hi,  Comments on Problem1:  It...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7122&amp;PID=22872&amp;title=task-item-click-event-not-fired-skin-unloadocx#22872</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2476">nklarun</a><br /><strong>Subject:</strong> 7122<br /><strong>Posted:</strong> 15 May 2007 at 1:48am<br /><br /><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Hi,<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><B style="mso-bidi-font-weight: normal"><U><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Comments on Problem1</SPAN></U></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">:<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">It may be workable without modal flag for the test application that I sent y’day. <o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">But in Actual Application, when I try to open the Form from First application without modal flag, Application throws the below error:<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt 0.5in"><B><SPAN style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: Verdana">Run-time error '406': Non-modal forms cannot be displayed in<BR>this host application from an ActiveX DLL, ActiveX Control or<BR>Property Page.</SPAN></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt 0.5in; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt 0.5in; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Kindly refer the following link:<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: 0.5in; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><a href="http://support.microsoft.com/kb/176468" target="_blank"><FONT color=#800080 size=2>http://support.microsoft.com/kb/176468</FONT></A> <o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>It is possible to open the required form with VbModal flag only. Will it be fixed in next version?<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><B style="mso-bidi-font-weight: normal"><U><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Comments on Problem2</SPAN></U></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">:<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>As I had already mentioned that, I’m using two different applications altogether but the second application may act as a child of First Application and also play as an individual application.<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>In this case, how should I use/handle the Skinframework to be useable for both cases?<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Thanks in advance</P><DIV></DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify">&nbsp;</P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><o:p></o:p></SPAN>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 15 May 2007 01:48:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7122&amp;PID=22872&amp;title=task-item-click-event-not-fired-skin-unloadocx#22872</guid>
  </item> 
  <item>
   <title><![CDATA[Task Item Click Event Not Fired &amp; Skin Unload-OCX : Hello,  First problem because...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7122&amp;PID=22847&amp;title=task-item-click-event-not-fired-skin-unloadocx#22847</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7122<br /><strong>Posted:</strong> 14 May 2007 at 8:03am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>First problem because of vbModal flag - seems form don't give taskpanel chance to handle mouse messages. Open form without modal flag (anyway it do nothing for exampler controls)</DIV><DIV>&nbsp;</DIV><DIV>Second problem because you have 2 SkinFrameworks for same application (only one can be used) remove it from second ocx. (it will be skinned anyway)</DIV>]]>
   </description>
   <pubDate>Mon, 14 May 2007 08:03:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7122&amp;PID=22847&amp;title=task-item-click-event-not-fired-skin-unloadocx#22847</guid>
  </item> 
  <item>
   <title><![CDATA[Task Item Click Event Not Fired &amp; Skin Unload-OCX : Scenario Description:   I have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7122&amp;PID=22827&amp;title=task-item-click-event-not-fired-skin-unloadocx#22827</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2476">nklarun</a><br /><strong>Subject:</strong> 7122<br /><strong>Posted:</strong> 14 May 2007 at 3:25am<br /><br /><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><B style="mso-bidi-font-weight: normal"><U>Scenario Description</U></B>:</FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>I have created two VB Activex Control Projects.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><o:p><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>First Project, User control With Skinframework and a Form (Which host Second project's OCX control)</FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><SPAN style="mso-tab-count: 1"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Second Project, User Control with TaskPanel and Skinframework<SPAN style="mso-spacerun: yes">&nbsp; </SPAN></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><o:p><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><o:p><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><B style="mso-bidi-font-weight: normal">Problem1 - Task Group Item Click Event Not Fired</B>:</FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><o:p><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in; TEXT-ALIGN: justify"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>If I launch the form from first project, I have not been able to click the task panel group item b'cos click event not been fired. If I want to click the Item in Task Panel I have to choose "ALT+TAB" Key for each time. This is the first problem that I faced.</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><o:p><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><B style="mso-bidi-font-weight: normal">Problem2 - Skin Unloaded for Parent too while close child application</B>:</FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><o:p><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in; TEXT-ALIGN: justify"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>If I close the form, Parent control's skin also unloaded without calling parent control's terminate event. This is the second Problem.</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><o:p><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><o:p><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>I have attached the zip file that contains the necessary project files to simulate the above issues.</FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><o:p><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2></FONT></o:p>&nbsp;</P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><o:p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="https://forum.codejock.com/uploads/20070514_032237_TaskPanelItemCl.zip" target="_blank"><strong><FONT size=2>uploads/20070514_032237_TaskPanelItemCl.zip</FONT></strong></A></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><o:p>&nbsp;</o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><U><strong>Steps to be followed reproduce the above behavior</strong></U>:</FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><o:p><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt 0.5in; TEXT-ALIGN: justify"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Unzip the “<B style="mso-bidi-font-weight: normal">TaskPanelItemClick &amp; Skin Unload Probs.zip</B>”</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt 0.5in; TEXT-ALIGN: justify"><o:p><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt 1in; TEXT-ALIGN: justify"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Step 1: Click Group1</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt 1in; TEXT-ALIGN: justify"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Step 2: Run the Project named EMProject</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt 1in; TEXT-ALIGN: justify"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Step 3: Click Command Button named "Launch User Control"</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt 1in; TEXT-ALIGN: justify"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Step 4: Form Loaded with DMProject Control (Probelm1 Occured)</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt 1in; TEXT-ALIGN: justify"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Step 5: Close Form1 (Problem2 Occurred)</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><o:p><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><o:p><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><FONT face="Verdana, Arial, Helvetica, sans-serif"><FONT size=2><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>I want the Click event to be fired while launch of the child form and Skin should not be unloaded in Parent Control even we close child controls. Kindly provide us the solution to get rid out of these problems.</FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><o:p><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Thanks in advance</P><DIV></DIV><DIV></DIV></FONT>]]>
   </description>
   <pubDate>Mon, 14 May 2007 03:25:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7122&amp;PID=22827&amp;title=task-item-click-event-not-fired-skin-unloadocx#22827</guid>
  </item> 
 </channel>
</rss>