<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Writing a pure SysTray Application without a Window</title>
	<atom:link href="http://jachman.wordpress.com/2006/05/29/writing-a-pure-systray-application-without-a-window/feed/" rel="self" type="application/rss+xml" />
	<link>http://jachman.wordpress.com/2006/05/29/writing-a-pure-systray-application-without-a-window/</link>
	<description>.NET C#, Oracle, SQL Server and all other stuff that gives live a sense.</description>
	<lastBuildDate>Sun, 03 Jan 2010 22:45:39 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Heartburn Home Remedy</title>
		<link>http://jachman.wordpress.com/2006/05/29/writing-a-pure-systray-application-without-a-window/#comment-1401</link>
		<dc:creator>Heartburn Home Remedy</dc:creator>
		<pubDate>Wed, 15 Apr 2009 13:06:36 +0000</pubDate>
		<guid isPermaLink="false">https://jachman.wordpress.com/2006/05/29/writing-a-pure-systray-application-without-a-window/#comment-1401</guid>
		<description>I noticed that this is not the first time at all that you write about the topic. Why have you chosen it again?</description>
		<content:encoded><![CDATA[<p>I noticed that this is not the first time at all that you write about the topic. Why have you chosen it again?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Emson</title>
		<link>http://jachman.wordpress.com/2006/05/29/writing-a-pure-systray-application-without-a-window/#comment-1372</link>
		<dc:creator>Matt Emson</dc:creator>
		<pubDate>Mon, 13 Oct 2008 10:29:11 +0000</pubDate>
		<guid isPermaLink="false">https://jachman.wordpress.com/2006/05/29/writing-a-pure-systray-application-without-a-window/#comment-1372</guid>
		<description>Simplest solution:

1) Create a UserControl, ass your trayicon etc to it, visually design etc, be happy that it is letting you do this with little pain. e.g create a control called &quot;HiddenWindow&quot;, place the NotificationIcon and associated ContextMenuStrip on to it and design the logic etc.

2) Alter the Program declaration to:

[STAThread]
    static void Main()
    {
      Application.EnableVisualStyles();
      Application.SetCompatibleTextRenderingDefault(false);

      //this instance will exist whilst the app is running
      HiddenWindow hw = new HiddenWindow();
      
      Application.Run(); //important, remove the Form from this!
    }

Voila! You have a tray/notification icon.</description>
		<content:encoded><![CDATA[<p>Simplest solution:</p>
<p>1) Create a UserControl, ass your trayicon etc to it, visually design etc, be happy that it is letting you do this with little pain. e.g create a control called &#8220;HiddenWindow&#8221;, place the NotificationIcon and associated ContextMenuStrip on to it and design the logic etc.</p>
<p>2) Alter the Program declaration to:</p>
<p>[STAThread]<br />
    static void Main()<br />
    {<br />
      Application.EnableVisualStyles();<br />
      Application.SetCompatibleTextRenderingDefault(false);</p>
<p>      //this instance will exist whilst the app is running<br />
      HiddenWindow hw = new HiddenWindow();</p>
<p>      Application.Run(); //important, remove the Form from this!<br />
    }</p>
<p>Voila! You have a tray/notification icon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: telli</title>
		<link>http://jachman.wordpress.com/2006/05/29/writing-a-pure-systray-application-without-a-window/#comment-1308</link>
		<dc:creator>telli</dc:creator>
		<pubDate>Thu, 07 Feb 2008 07:50:16 +0000</pubDate>
		<guid isPermaLink="false">https://jachman.wordpress.com/2006/05/29/writing-a-pure-systray-application-without-a-window/#comment-1308</guid>
		<description>I do not agree, Sebastian, the correct way is to use &quot;notifyIcon.Dispose();&quot; in the onClose-Function.

Just my 2 cent.</description>
		<content:encoded><![CDATA[<p>I do not agree, Sebastian, the correct way is to use &#8220;notifyIcon.Dispose();&#8221; in the onClose-Function.</p>
<p>Just my 2 cent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian Werner</title>
		<link>http://jachman.wordpress.com/2006/05/29/writing-a-pure-systray-application-without-a-window/#comment-1289</link>
		<dc:creator>Sebastian Werner</dc:creator>
		<pubDate>Tue, 08 Jan 2008 16:04:00 +0000</pubDate>
		<guid isPermaLink="false">https://jachman.wordpress.com/2006/05/29/writing-a-pure-systray-application-without-a-window/#comment-1289</guid>
		<description>In &quot;private void OnClose&quot; there should be a &quot;notifyIcon.Visible = false;&quot; before the &quot;Application.Exit();&quot;. Otherwise the Icon would stay in the SysTray until you hover Mouse over it.</description>
		<content:encoded><![CDATA[<p>In &#8220;private void OnClose&#8221; there should be a &#8220;notifyIcon.Visible = false;&#8221; before the &#8220;Application.Exit();&#8221;. Otherwise the Icon would stay in the SysTray until you hover Mouse over it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Console.Write(this.Opinion) : Criando uma aplica&#231;&#227;o .Net 100% SysTray</title>
		<link>http://jachman.wordpress.com/2006/05/29/writing-a-pure-systray-application-without-a-window/#comment-201</link>
		<dc:creator>Console.Write(this.Opinion) : Criando uma aplica&#231;&#227;o .Net 100% SysTray</dc:creator>
		<pubDate>Tue, 24 Apr 2007 10:45:52 +0000</pubDate>
		<guid isPermaLink="false">https://jachman.wordpress.com/2006/05/29/writing-a-pure-systray-application-without-a-window/#comment-201</guid>
		<description>[...] Writing a pure SysTray Application without a&#160;Window&#160;- Gerhard Stephan [...]</description>
		<content:encoded><![CDATA[<p>[...] Writing a pure SysTray Application without a&nbsp;Window&nbsp;- Gerhard Stephan [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ColoMan</title>
		<link>http://jachman.wordpress.com/2006/05/29/writing-a-pure-systray-application-without-a-window/#comment-141</link>
		<dc:creator>ColoMan</dc:creator>
		<pubDate>Fri, 06 Apr 2007 22:24:25 +0000</pubDate>
		<guid isPermaLink="false">https://jachman.wordpress.com/2006/05/29/writing-a-pure-systray-application-without-a-window/#comment-141</guid>
		<description>Sure you can hide a main window.... just make sure it is done in the shown event

        void Form1_Shown(object sender, EventArgs e)
        {
            this.Hide();
        }</description>
		<content:encoded><![CDATA[<p>Sure you can hide a main window&#8230;. just make sure it is done in the shown event</p>
<p>        void Form1_Shown(object sender, EventArgs e)<br />
        {<br />
            this.Hide();<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nervos</title>
		<link>http://jachman.wordpress.com/2006/05/29/writing-a-pure-systray-application-without-a-window/#comment-120</link>
		<dc:creator>nervos</dc:creator>
		<pubDate>Fri, 19 Jan 2007 15:29:32 +0000</pubDate>
		<guid isPermaLink="false">https://jachman.wordpress.com/2006/05/29/writing-a-pure-systray-application-without-a-window/#comment-120</guid>
		<description>damm
i looked at it.. 
it contains forms!!!
using System.Windows.Forms;


what about i have an application that
using System.Windows;

so i have an window and i also want an systray menu?
what to do?</description>
		<content:encoded><![CDATA[<p>damm<br />
i looked at it..<br />
it contains forms!!!<br />
using System.Windows.Forms;</p>
<p>what about i have an application that<br />
using System.Windows;</p>
<p>so i have an window and i also want an systray menu?<br />
what to do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zook&#8217;s Prog Blog - VB.Net, or whatever bleeding edge technology I&#8217;m hurting myself with today. &#187; Email a Screen Shot</title>
		<link>http://jachman.wordpress.com/2006/05/29/writing-a-pure-systray-application-without-a-window/#comment-17</link>
		<dc:creator>Zook&#8217;s Prog Blog - VB.Net, or whatever bleeding edge technology I&#8217;m hurting myself with today. &#187; Email a Screen Shot</dc:creator>
		<pubDate>Thu, 10 Aug 2006 00:07:35 +0000</pubDate>
		<guid isPermaLink="false">https://jachman.wordpress.com/2006/05/29/writing-a-pure-systray-application-without-a-window/#comment-17</guid>
		<description>[...] You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.           Leave aReply [...]</description>
		<content:encoded><![CDATA[<p>[...] You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.           Leave aReply [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerhard Stephan</title>
		<link>http://jachman.wordpress.com/2006/05/29/writing-a-pure-systray-application-without-a-window/#comment-3</link>
		<dc:creator>Gerhard Stephan</dc:creator>
		<pubDate>Thu, 08 Jun 2006 06:16:22 +0000</pubDate>
		<guid isPermaLink="false">https://jachman.wordpress.com/2006/05/29/writing-a-pure-systray-application-without-a-window/#comment-3</guid>
		<description>Don&#039;t use the command : &quot;Application.EnableVisualStyles();&quot; 
As you can see in my following posts this leads to an error. &lt;a href=&quot;http://jachman.wordpress.com/2006/06/01/systemruntimeinteropservicessehexception/&quot; rel=&quot;nofollow&quot;&gt;System.Runtime.InteropServices.SEHException&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Don&#8217;t use the command : &#8220;Application.EnableVisualStyles();&#8221;<br />
As you can see in my following posts this leads to an error. <a href="http://jachman.wordpress.com/2006/06/01/systemruntimeinteropservicessehexception/" rel="nofollow">System.Runtime.InteropServices.SEHException</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
