<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Hide Form from Alt+Tab</title>
	<atom:link href="http://www.csharp411.com/hide-form-from-alttab/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.csharp411.com/hide-form-from-alttab/</link>
	<description>C# Information, Code, Tips and News</description>
	<lastBuildDate>Sat, 24 Jul 2010 01:26:51 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Alessandro</title>
		<link>http://www.csharp411.com/hide-form-from-alttab/comment-page-1/#comment-5568</link>
		<dc:creator>Alessandro</dc:creator>
		<pubDate>Mon, 05 Jul 2010 16:54:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/hide-form-from-alttab/#comment-5568</guid>
		<description>and for vb.net developer : 

Protected Overrides ReadOnly Property CreateParams() As CreateParams
        Get
            Dim cp As CreateParams = MyBase.CreateParams
            &#039; turn on WS_EX_TOOLWINDOW style bit
            cp.ExStyle = cp.ExStyle Or &amp;H80
            Return cp
        End Get
    End Property

bye :)</description>
		<content:encoded><![CDATA[<p>and for vb.net developer : </p>
<p>Protected Overrides ReadOnly Property CreateParams() As CreateParams<br />
        Get<br />
            Dim cp As CreateParams = MyBase.CreateParams<br />
            ' turn on WS_EX_TOOLWINDOW style bit<br />
            cp.ExStyle = cp.ExStyle Or &amp;H80<br />
            Return cp<br />
        End Get<br />
    End Property</p>
<p>bye <img src='http://www.csharp411.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alessandro</title>
		<link>http://www.csharp411.com/hide-form-from-alttab/comment-page-1/#comment-5567</link>
		<dc:creator>Alessandro</dc:creator>
		<pubDate>Mon, 05 Jul 2010 16:53:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/hide-form-from-alttab/#comment-5567</guid>
		<description>many many thanks !!!</description>
		<content:encoded><![CDATA[<p>many many thanks !!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matteo</title>
		<link>http://www.csharp411.com/hide-form-from-alttab/comment-page-1/#comment-5463</link>
		<dc:creator>Matteo</dc:creator>
		<pubDate>Fri, 30 Apr 2010 03:17:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/hide-form-from-alttab/#comment-5463</guid>
		<description>Oops, I forgot that to add the line

ShowInTaskbar = false;

For the form your are hiding.</description>
		<content:encoded><![CDATA[<p>Oops, I forgot that to add the line</p>
<p>ShowInTaskbar = false;</p>
<p>For the form your are hiding.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matteo</title>
		<link>http://www.csharp411.com/hide-form-from-alttab/comment-page-1/#comment-5462</link>
		<dc:creator>Matteo</dc:creator>
		<pubDate>Fri, 30 Apr 2010 03:15:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/hide-form-from-alttab/#comment-5462</guid>
		<description>Okay, I think I&#039;ve found a definitive solution that simply is not sensitive to what kind of window style the window you are keeping hidden from Alt-Tab has. Just place this in the constructor of your form:

// Keep this program out of the Alt-Tab menu
        
Form form1 = new Form ( );

        form1.FormBorderStyle = FormBorderStyle.FixedToolWindow;
        form1.ShowInTaskbar = false;

Owner = form1;</description>
		<content:encoded><![CDATA[<p>Okay, I think I've found a definitive solution that simply is not sensitive to what kind of window style the window you are keeping hidden from Alt-Tab has. Just place this in the constructor of your form:</p>
<p>// Keep this program out of the Alt-Tab menu</p>
<p>Form form1 = new Form ( );</p>
<p>        form1.FormBorderStyle = FormBorderStyle.FixedToolWindow;<br />
        form1.ShowInTaskbar = false;</p>
<p>Owner = form1;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morten Kirsbo</title>
		<link>http://www.csharp411.com/hide-form-from-alttab/comment-page-1/#comment-5375</link>
		<dc:creator>Morten Kirsbo</dc:creator>
		<pubDate>Sat, 06 Feb 2010 14:38:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/hide-form-from-alttab/#comment-5375</guid>
		<description>Thank you very much, the code work&#039;s perfect. I&#039;ve converted it to VB.NET should anyone need it:

    Protected Overloads Overrides ReadOnly Property CreateParams() As CreateParams
        Get
            Dim cp As CreateParams = MyBase.CreateParams
            &#039; turn on WS_EX_TOOLWINDOW style bit
            cp.ExStyle = cp.ExStyle Or &amp;H80
            Return cp
        End Get
    End Property</description>
		<content:encoded><![CDATA[<p>Thank you very much, the code work's perfect. I've converted it to VB.NET should anyone need it:</p>
<p>    Protected Overloads Overrides ReadOnly Property CreateParams() As CreateParams<br />
        Get<br />
            Dim cp As CreateParams = MyBase.CreateParams<br />
            ' turn on WS_EX_TOOLWINDOW style bit<br />
            cp.ExStyle = cp.ExStyle Or &amp;H80<br />
            Return cp<br />
        End Get<br />
    End Property</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beissi</title>
		<link>http://www.csharp411.com/hide-form-from-alttab/comment-page-1/#comment-5363</link>
		<dc:creator>Beissi</dc:creator>
		<pubDate>Fri, 15 Jan 2010 08:21:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/hide-form-from-alttab/#comment-5363</guid>
		<description>It works after program start. But once I have set window state to normal and then back to minimized, the tool appears in the alt+tab-list.

(I have a tool reduced to a notifcation icon which checks for a file periodically and pops up with the file content if it finds one.)

private void toggleVisible(bool mode) {
  this.TopMost = mode;
  if (mode) {
   this.WindowState = FormWindowState.Normal;
  } else {
   //also called from constructor:
   this.WindowState = FormWindowState.Minimized;
   this.FormBorderStyle = FormBorderStyle.SizableToolWindow;
   this.ShowInTaskbar = false;
  }
}</description>
		<content:encoded><![CDATA[<p>It works after program start. But once I have set window state to normal and then back to minimized, the tool appears in the alt+tab-list.</p>
<p>(I have a tool reduced to a notifcation icon which checks for a file periodically and pops up with the file content if it finds one.)</p>
<p>private void toggleVisible(bool mode) {<br />
  this.TopMost = mode;<br />
  if (mode) {<br />
   this.WindowState = FormWindowState.Normal;<br />
  } else {<br />
   //also called from constructor:<br />
   this.WindowState = FormWindowState.Minimized;<br />
   this.FormBorderStyle = FormBorderStyle.SizableToolWindow;<br />
   this.ShowInTaskbar = false;<br />
  }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sudhir kumar</title>
		<link>http://www.csharp411.com/hide-form-from-alttab/comment-page-1/#comment-5356</link>
		<dc:creator>sudhir kumar</dc:creator>
		<pubDate>Fri, 08 Jan 2010 04:27:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/hide-form-from-alttab/#comment-5356</guid>
		<description>Thanks for making idea of borderless form. Excellent work.</description>
		<content:encoded><![CDATA[<p>Thanks for making idea of borderless form. Excellent work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shahid</title>
		<link>http://www.csharp411.com/hide-form-from-alttab/comment-page-1/#comment-5298</link>
		<dc:creator>Shahid</dc:creator>
		<pubDate>Wed, 07 Oct 2009 05:31:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/hide-form-from-alttab/#comment-5298</guid>
		<description>Excellent man! It really works. Thanks</description>
		<content:encoded><![CDATA[<p>Excellent man! It really works. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Optimus</title>
		<link>http://www.csharp411.com/hide-form-from-alttab/comment-page-1/#comment-5260</link>
		<dc:creator>Optimus</dc:creator>
		<pubDate>Wed, 19 Aug 2009 14:34:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/hide-form-from-alttab/#comment-5260</guid>
		<description>Excellent post. Thank you.</description>
		<content:encoded><![CDATA[<p>Excellent post. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: santosh</title>
		<link>http://www.csharp411.com/hide-form-from-alttab/comment-page-1/#comment-5253</link>
		<dc:creator>santosh</dc:creator>
		<pubDate>Mon, 10 Aug 2009 04:22:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/hide-form-from-alttab/#comment-5253</guid>
		<description>i am running a exe at the time of system startup.the form&#039;s are In-Visible but when i click alt+tab a blank window in visible.how can i ignore that window.please send me the solution through this mail ID.

with Regards,
santosh</description>
		<content:encoded><![CDATA[<p>i am running a exe at the time of system startup.the form's are In-Visible but when i click alt+tab a blank window in visible.how can i ignore that window.please send me the solution through this mail ID.</p>
<p>with Regards,<br />
santosh</p>
]]></content:encoded>
	</item>
</channel>
</rss>
