<?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 : Close TaskDialog or Hide Buttons</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Close TaskDialog or Hide Buttons]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 14:29:54 +0000</pubDate>
  <lastBuildDate>Mon, 27 Jul 2009 18:13:34 +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=13866</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[Close TaskDialog or Hide Buttons : I think I&amp;#039;ve solved most...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13866&amp;PID=51384&amp;title=close-taskdialog-or-hide-buttons#51384</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 13866<br /><strong>Posted:</strong> 27 July 2009 at 6:13pm<br /><br />I think I've solved most of the problems that I was having. If anyone else is interested, then here's some demo code:<br><br><a href="https://forum.codejock.com/forum_posts.asp?TID=14843" target="_blank">https://forum.codejock.com/forum_posts.asp?TID=14843</a><br>]]>
   </description>
   <pubDate>Mon, 27 Jul 2009 18:13:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13866&amp;PID=51384&amp;title=close-taskdialog-or-hide-buttons#51384</guid>
  </item> 
  <item>
   <title><![CDATA[Close TaskDialog or Hide Buttons : Got it...If I set .AllowCancellation...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13866&amp;PID=51377&amp;title=close-taskdialog-or-hide-buttons#51377</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 13866<br /><strong>Posted:</strong> 27 July 2009 at 1:56pm<br /><br />Got it...If I set .AllowCancellation = True immediately before I call SendMessage(WM_CLOSE), then I can close the window.]]>
   </description>
   <pubDate>Mon, 27 Jul 2009 13:56:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13866&amp;PID=51377&amp;title=close-taskdialog-or-hide-buttons#51377</guid>
  </item> 
  <item>
   <title><![CDATA[Close TaskDialog or Hide Buttons : Ok, I&amp;#039;ve been able to get...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13866&amp;PID=51376&amp;title=close-taskdialog-or-hide-buttons#51376</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 13866<br /><strong>Posted:</strong> 27 July 2009 at 1:50pm<br /><br />Ok, I've been able to get the Hwnd of the dialog by calling FindWindow in the Constructed event. Unfortunately, I haven't been able to close it. I've tried:<br><br>SendMessage(WM_CLOSE) <b>&lt;this get consumed because I also need AllowCancellation = False</b><br>DestroyWindow() <b>&lt;Dialog disappears, but does not release itself so the app gets stuck.</b><br><br>Any ideas what I could call to close the window now that I have the hwnd?<br><br>Thanks.<br>]]>
   </description>
   <pubDate>Mon, 27 Jul 2009 13:50:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13866&amp;PID=51376&amp;title=close-taskdialog-or-hide-buttons#51376</guid>
  </item> 
  <item>
   <title><![CDATA[Close TaskDialog or Hide Buttons : Hi Oleg,I&amp;#039;m back to this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13866&amp;PID=51374&amp;title=close-taskdialog-or-hide-buttons#51374</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 13866<br /><strong>Posted:</strong> 27 July 2009 at 10:36am<br /><br />Hi Oleg,<br><br>I'm back to this one as I've found I need the ability to close the TaskDialog by code without showing a button again. Any chance of this? Or could you expose the Hwnd and maybe SendMessage(WM_CLOSE) or CloseWindow would work?<br><br>Thanks.<br>]]>
   </description>
   <pubDate>Mon, 27 Jul 2009 10:36:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13866&amp;PID=51374&amp;title=close-taskdialog-or-hide-buttons#51374</guid>
  </item> 
  <item>
   <title><![CDATA[Close TaskDialog or Hide Buttons : Hi Oleg,Sorry for being a pest,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13866&amp;PID=47399&amp;title=close-taskdialog-or-hide-buttons#47399</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 13866<br /><strong>Posted:</strong> 31 March 2009 at 6:17pm<br /><br />Hi Oleg,<br>Sorry for being a pest, but is there any chance this feature (close TaskDialog) could make it into an early build (or at least the next release)?<br>]]>
   </description>
   <pubDate>Tue, 31 Mar 2009 18:17:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13866&amp;PID=47399&amp;title=close-taskdialog-or-hide-buttons#47399</guid>
  </item> 
  <item>
   <title><![CDATA[Close TaskDialog or Hide Buttons : You&amp;#039;re right that I could...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13866&amp;PID=47380&amp;title=close-taskdialog-or-hide-buttons#47380</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 13866<br /><strong>Posted:</strong> 31 March 2009 at 9:14am<br /><br />You're right that I could do it this way (and I may have to for now). I was hoping to avoid this, because I am already tracking a somewhat complex state machine in the TaskDialog timer event, and adding extra variables would just add to the code complication...]]>
   </description>
   <pubDate>Tue, 31 Mar 2009 09:14:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13866&amp;PID=47380&amp;title=close-taskdialog-or-hide-buttons#47380</guid>
  </item> 
  <item>
   <title><![CDATA[Close TaskDialog or Hide Buttons : Hi, Why you can&amp;#039;t call TaskDialog1.ClickButton...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13866&amp;PID=47356&amp;title=close-taskdialog-or-hide-buttons#47356</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13866<br /><strong>Posted:</strong> 31 March 2009 at 2:54am<br /><br /><P>Hi,</P><DIV>Why you can't call</DIV><DIV>TaskDialog1.ClickButton xtpTaskButtonCancel and set some flag variable that you close it manually? :)</DIV><DIV>&nbsp;</DIV><DIV>But anyway you are right, we need some Close method.</DIV>]]>
   </description>
   <pubDate>Tue, 31 Mar 2009 02:54:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13866&amp;PID=47356&amp;title=close-taskdialog-or-hide-buttons#47356</guid>
  </item> 
  <item>
   <title><![CDATA[Close TaskDialog or Hide Buttons : I&amp;#039;m really desperate for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13866&amp;PID=47348&amp;title=close-taskdialog-or-hide-buttons#47348</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 13866<br /><strong>Posted:</strong> 30 March 2009 at 11:29pm<br /><br />I'm really desperate for a way to either:<br><br>A) Close the TaskDialog menu without clicking a button, or<br>B) Hide a button on the TaskDialog so I can close it with ClickButton (but the user cannot see it or click it).<br><br>The reason for this is that I have a marquee style progress bar moving with a separate thread doing background processing. The user has the option to click the Cancel button, but I would also like the ability to close the TaskDialog in code when the thread is finished processing (without clicking the Cancel button in code). <br><br>Any chance at all of either (or both) of these in the next release?<br><br>]]>
   </description>
   <pubDate>Mon, 30 Mar 2009 23:29:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13866&amp;PID=47348&amp;title=close-taskdialog-or-hide-buttons#47348</guid>
  </item> 
 </channel>
</rss>