<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bee Eee Blog &#187; c# .Net</title>
	<atom:link href="http://blog.bee-eee.com/tag/c-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bee-eee.com</link>
	<description>-- C# hints and tips</description>
	<lastBuildDate>Wed, 23 Dec 2009 19:00:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>c# Command Line Arguments</title>
		<link>http://blog.bee-eee.com/2008/04/14/c-command-line-arguments/</link>
		<comments>http://blog.bee-eee.com/2008/04/14/c-command-line-arguments/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 20:53:39 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[c# .Net]]></category>

		<guid isPermaLink="false">http://blog.bee-eee.com/2008/04/14/c-command-line-arguments/</guid>
		<description><![CDATA[Here&#8217;s how you access the command line arguments: string[] argv = Environment.GetCommandLineArgs();]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s how you access the command line arguments:</p>
<pre class="code">
string[] argv = Environment.GetCommandLineArgs();</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.bee-eee.com/2008/04/14/c-command-line-arguments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firing an event from within a thread. (At least one way)</title>
		<link>http://blog.bee-eee.com/2008/01/16/firing-an-event-from-within-a-thread-at-least-one-way/</link>
		<comments>http://blog.bee-eee.com/2008/01/16/firing-an-event-from-within-a-thread-at-least-one-way/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 21:17:08 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[c# .Net]]></category>

		<guid isPermaLink="false">http://blog.bee-eee.com/?p=20</guid>
		<description><![CDATA[It took me forever to think of this easy method of firing an event from with a thread to the main thread.  In searching the web I found several complicated methods that either didn&#8217;t work or won&#8217;t worth the hassel.  But it turns out to be incredible simple and easy to do.  The only caveat [...]]]></description>
			<content:encoded><![CDATA[<p>It took me forever to think of this easy method of firing an event from with a thread to the main thread.  In searching the web I found several complicated methods that either didn&#8217;t work or won&#8217;t worth the hassel.  But it turns out to be incredible simple and easy to do.  The only caveat is that the  event subscriber must be a System.Windows.Forms.Control or derived from one</p>
<p>Basically you just get the control target of the delegate and use it&#8217;s BeginInvoke or Invoke method and .Net does the rest.</p>
<pre class="code">
        private void DoCommandFinished(Command cmd)
        {
            if ( null != CommandFinished )
            {
                System.Windows.Forms.Control c = CommandFinished.Target as System.Windows.Forms.Control;
                if (null != c)
                {
                    c.BeginInvoke(CommandFinished, cmd);
                }
            }
        }</pre>
<p>I checked this method in my main window thread with the InvokeRequired function.  It worked well.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bee-eee.com/2008/01/16/firing-an-event-from-within-a-thread-at-least-one-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
