<?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/"
	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>Jean-Francois Blier</title>
	<atom:link href="http://jfblier.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jfblier.wordpress.com</link>
	<description>Blog</description>
	<lastBuildDate>Wed, 25 Jan 2012 19:22:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jfblier.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Jean-Francois Blier</title>
		<link>http://jfblier.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jfblier.wordpress.com/osd.xml" title="Jean-Francois Blier" />
	<atom:link rel='hub' href='http://jfblier.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Copy File Name to the clipboard &#8211; Windows explorer context menu</title>
		<link>http://jfblier.wordpress.com/2012/01/07/copy-file-name-to-the-clipboard-windows-explorer-context-menu/</link>
		<comments>http://jfblier.wordpress.com/2012/01/07/copy-file-name-to-the-clipboard-windows-explorer-context-menu/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 15:34:29 +0000</pubDate>
		<dc:creator>jfblier</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://jfblier.wordpress.com/?p=383</guid>
		<description><![CDATA[I added to the utilities section of the blog a small utility that add a menu in the Windows Explorer context menu that copy the file name to the clipboard. It works for all kind of files and also for folders. Click this link to learn more and download it. The approach is really simple. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jfblier.wordpress.com&amp;blog=4198685&amp;post=383&amp;subd=jfblier&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I added to the utilities section of the blog a small utility that add a menu in the Windows Explorer context menu that copy the file name to the clipboard. It works for all kind of files and also for folders.</p>
<p><a href="http://jfblier.files.wordpress.com/2012/01/example1.png"><img class="alignnone size-full wp-image-376" title="Example1" src="http://jfblier.files.wordpress.com/2012/01/example1.png?w=600" alt=""   /></a></p>
<p><a title="Download" href="http://jfblier.wordpress.com/windows-utilities/">Click this link to learn more and download it.</a></p>
<p>The approach is really simple. I have created a small application in C#. If the application receive a argument, it call the Clipboard.SetText(args[0]) method. Done.</p>
<p>To add a entry in the context menu of the Windows Explorer, you need to add a registry key.<br />
1-Add a key under <em>HKEY_CLASSES_ROOT\*\shell\</em><br />
2-Add a <em>command</em> subkey.<br />
3-Add a new <em>string value</em> that contains the executable path in the value as follow: <em>abc.exe &#8220;%L&#8221;</em></p>
<p>&nbsp;</p>
<p><a href="http://jfblier.files.wordpress.com/2012/01/regeditexample.png"><img class="alignnone size-full wp-image-390" title="RegEditExample" src="http://jfblier.files.wordpress.com/2012/01/regeditexample.png?w=600&#038;h=86" alt="" width="600" height="86" /></a></p>
<p>&nbsp;</p>
<p>To be able to handle the folders, you need to add a other registry key under <em>HKEY_CLASSES_ROOT\Folder\shell\</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jfblier.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jfblier.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jfblier.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jfblier.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jfblier.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jfblier.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jfblier.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jfblier.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jfblier.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jfblier.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jfblier.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jfblier.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jfblier.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jfblier.wordpress.com/383/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jfblier.wordpress.com&amp;blog=4198685&amp;post=383&amp;subd=jfblier&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jfblier.wordpress.com/2012/01/07/copy-file-name-to-the-clipboard-windows-explorer-context-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">jfblier</media:title>
		</media:content>

		<media:content url="http://jfblier.files.wordpress.com/2012/01/example1.png" medium="image">
			<media:title type="html">Example1</media:title>
		</media:content>

		<media:content url="http://jfblier.files.wordpress.com/2012/01/regeditexample.png" medium="image">
			<media:title type="html">RegEditExample</media:title>
		</media:content>
	</item>
		<item>
		<title>Accordion control</title>
		<link>http://jfblier.wordpress.com/2011/02/21/accordion-control/</link>
		<comments>http://jfblier.wordpress.com/2011/02/21/accordion-control/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 00:20:47 +0000</pubDate>
		<dc:creator>jfblier</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://jfblier.wordpress.com/?p=355</guid>
		<description><![CDATA[Using the Expander control that I posted a week ago, I created a Accordion control. It&#8217;s in C# and use WinForm. The source code is available here. Here is a image showing the Accordion: In this example, there is 3 expander. Each expander use a Label control for the header and content section. You can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jfblier.wordpress.com&amp;blog=4198685&amp;post=355&amp;subd=jfblier&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Using the <a href="http://jfblier.wordpress.com/2011/02/16/window-form-expander/">Expander control</a> that I posted a week ago, I created a Accordion control. It&#8217;s in C# and use WinForm.</p>
<p>The source code is available <a href="http://www.mediafire.com/?11gm5arkn05qruw">here</a>.</p>
<p>Here is a image showing the Accordion:<br />
<a href="http://jfblier.files.wordpress.com/2011/02/accordion1.png"><img class="alignnone size-full wp-image-356" title="Accordion1" src="http://jfblier.files.wordpress.com/2011/02/accordion1.png?w=600" alt=""   /></a></p>
<p>In this example, there is 3 expander. Each expander use a Label control for the header and content section.<br />
You can plug your own control easily.<br />
</p>
<hr />
<a href="http://jfblier.wordpress.com/2008/12/10/rich-panel-with-expander/">A other rich panel</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jfblier.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jfblier.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jfblier.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jfblier.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jfblier.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jfblier.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jfblier.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jfblier.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jfblier.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jfblier.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jfblier.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jfblier.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jfblier.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jfblier.wordpress.com/355/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jfblier.wordpress.com&amp;blog=4198685&amp;post=355&amp;subd=jfblier&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jfblier.wordpress.com/2011/02/21/accordion-control/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">jfblier</media:title>
		</media:content>

		<media:content url="http://jfblier.files.wordpress.com/2011/02/accordion1.png" medium="image">
			<media:title type="html">Accordion1</media:title>
		</media:content>
	</item>
		<item>
		<title>Window form Expander</title>
		<link>http://jfblier.wordpress.com/2011/02/16/window-form-expander/</link>
		<comments>http://jfblier.wordpress.com/2011/02/16/window-form-expander/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 12:15:56 +0000</pubDate>
		<dc:creator>jfblier</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://jfblier.wordpress.com/?p=333</guid>
		<description><![CDATA[I wrote a expander using WinForm in C# The source code is available here. The Expander is divided in two regions: Header and Content. They take a Control, so you can create your own header control and put any control that you want into the content region. Here is a image of a Expander created [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jfblier.wordpress.com&amp;blog=4198685&amp;post=333&amp;subd=jfblier&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I wrote a expander using WinForm in C#</p>
<p>The source code is available <a href="http://www.mediafire.com/?11gm5arkn05qruw">here</a>.</p>
<p>The Expander is divided in two regions: <strong>Header</strong> and <strong>Content</strong>. They take a Control, so you can create your own header control and put any control that you want into the content region.</p>
<p>Here is a image of a Expander created using the Expander control:<br />
<a href="http://jfblier.files.wordpress.com/2011/02/expander1.png"><img src="http://jfblier.files.wordpress.com/2011/02/expander1.png?w=600" alt="" title="Expander1"   class="alignnone size-full wp-image-334" /></a></p>
<p>The header and the content are basic Labels.</p>
<p>The code to create this expander is the following:</p>
<p><pre class="brush: csharp;">
            Expander expander = new Expander();
            expander.Size = new Size(250, 400);
            expander.Left = 350;
            expander.Top = 10;
            expander.BorderStyle = BorderStyle.FixedSingle;

            ExpanderHelper.CreateLabelHeader(expander, &quot;Header&quot;, SystemColors.ActiveBorder, Properties.Resources.Collapse, Properties.Resources.Expand);

            Label labelContent = new Label();
            labelContent.Text = &quot;This is the content part.\r\n\r\nYou can put any Controls here. You can use a Panel, a CustomControl, basically, anything you want.&quot;;
            labelContent.Size = new System.Drawing.Size(expander.Width, 80);
            expander.Content = labelContent;

            this.Controls.Add(expander);
</pre></p>
<p>This sample use the ExpanderHelper class to create a header label. </p>
<p>You can create your own header control. The next sample create a Label and connect the Label.Click event to toggle the expander and change the background color depending on the expander state.</p>
<p>Expanded:<br />
<a href="http://jfblier.files.wordpress.com/2011/02/expander3.png"><img src="http://jfblier.files.wordpress.com/2011/02/expander3.png?w=600" alt="" title="Expander3"   class="alignnone size-full wp-image-345" /></a></p>
<p>Collapsed:<br />
<a href="http://jfblier.files.wordpress.com/2011/02/expander3_2.png"><img src="http://jfblier.files.wordpress.com/2011/02/expander3_2.png?w=600" alt="" title="Expander3_2"   class="alignnone size-full wp-image-347" /></a></p>
<p><pre class="brush: csharp;">
            Expander expander = new Expander();
            expander.Size = new Size(250, 120);
            expander.Left = 350;
            expander.Top = 230;
            expander.BorderStyle = BorderStyle.FixedSingle;

            Label headerLabel = new Label();
            headerLabel.Text = &quot;Click me&quot;;
            headerLabel.AutoSize = false;
            headerLabel.Font = new Font(headerLabel.Font, FontStyle.Bold);
            headerLabel.TextAlign = ContentAlignment.MiddleLeft;
            headerLabel.BackColor = SystemColors.ActiveBorder;

            headerLabel.Click += delegate
            {
                expander.Toggle();
                if (expander.Expanded)
                    headerLabel.BackColor = SystemColors.ActiveBorder;
                else
                    headerLabel.BackColor = SystemColors.ActiveCaption;
            };

            expander.Header = headerLabel;

            Label labelContent = new Label();
            labelContent.Text = &quot;You are not limited to use the ExpanderHelper to create your header. Here is a example with a custom code and custom click event handler that change the header backcolor when the expander state change.&quot;;
            labelContent.Size = new System.Drawing.Size(expander.Width, 75);
            expander.Content = labelContent;

            this.Controls.Add(expander);
</pre></p>
<p><strong>Expander State</strong></p>
<p>The expander offer 2 events: StateChanging and StateChanged.<br />
You can use the StateChanging to prevent the expander to collapse or to expand.</p>
<p></p>
<hr />
<a href="http://jfblier.wordpress.com/2008/12/10/rich-panel-with-expander/">A other rich panel</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jfblier.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jfblier.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jfblier.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jfblier.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jfblier.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jfblier.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jfblier.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jfblier.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jfblier.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jfblier.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jfblier.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jfblier.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jfblier.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jfblier.wordpress.com/333/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jfblier.wordpress.com&amp;blog=4198685&amp;post=333&amp;subd=jfblier&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jfblier.wordpress.com/2011/02/16/window-form-expander/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">jfblier</media:title>
		</media:content>

		<media:content url="http://jfblier.files.wordpress.com/2011/02/expander1.png" medium="image">
			<media:title type="html">Expander1</media:title>
		</media:content>

		<media:content url="http://jfblier.files.wordpress.com/2011/02/expander3.png" medium="image">
			<media:title type="html">Expander3</media:title>
		</media:content>

		<media:content url="http://jfblier.files.wordpress.com/2011/02/expander3_2.png" medium="image">
			<media:title type="html">Expander3_2</media:title>
		</media:content>
	</item>
		<item>
		<title>C# Scripting</title>
		<link>http://jfblier.wordpress.com/2010/11/19/c-scripting/</link>
		<comments>http://jfblier.wordpress.com/2010/11/19/c-scripting/#comments</comments>
		<pubDate>Sat, 20 Nov 2010 02:35:45 +0000</pubDate>
		<dc:creator>jfblier</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://jfblier.wordpress.com/?p=314</guid>
		<description><![CDATA[Source Adding scripting in a C# application is really easy. In that post, I will show you how to incorporate C# into your C# program. I have created a small Script class that allow you to define a function with parameters and a return type, provide code and execute it. Usage The code below define [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jfblier.wordpress.com&amp;blog=4198685&amp;post=314&amp;subd=jfblier&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mediafire.com/?953fg747gvk6poy">Source</a></p>
<p>Adding scripting in a C# application is really easy. </p>
<p>In that post, I will show you how to incorporate C# into your C# program.</p>
<p>I have created a small <strong>Script</strong> class that allow you to define a function with parameters and a return type, provide code and execute it.</p>
<p><strong>Usage</strong></p>
<p>The code below define a new script that return the integer 3:<br />
<pre class="brush: csharp;">
Script script = new Script(&quot;Test&quot;, &quot;return 3;&quot;, typeof(int));
object ret = script.Execute();
</pre></p>
<p>The following example define a script taking a string as first argument and showing a MessageBox with a Hello :<br />
<pre class="brush: csharp;">
string code = &quot;MessageBox.Show(\&quot;Hello \&quot; + name);&quot;;
Script script = new Script(&quot;Test&quot;, code);
script.ReferencedAssemblies.Add(&quot;System.Windows.Forms.dll&quot;);
script.Using.Add(&quot;System.Windows.Forms&quot;);
script.AddParameter(&quot;System.String&quot;, &quot;name&quot;);
script.Execute(new object[] {&quot;Test&quot;});
</pre></p>
<p><strong>See the generated code</strong></p>
<p>You can also see the generated code with the GenerateCode method:</p>
<p><pre class="brush: csharp;">
//------------------------------------------------------------------------------
// 
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.4952
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// 
//------------------------------------------------------------------------------
namespace ScripterNamespace10111921232181
{
    using System;
    using System.Collections.Generic;
    using System.Text;
    
    public sealed class ScripterClass
    {
        
        public static object ScripterMethod()
        {
            return 3;
        }
    }
}
</pre></p>
<p><strong>Demo application</strong></p>
<p>I have created a small application that allow you to enter code, compile, run it and see the output.</p>
<p><a href="http://jfblier.files.wordpress.com/2010/11/scripter.png"><img src="http://jfblier.files.wordpress.com/2010/11/scripter.png?w=600&#038;h=428" alt="" title="Scripter" width="600" height="428" class="alignnone size-full wp-image-324" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jfblier.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jfblier.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jfblier.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jfblier.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jfblier.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jfblier.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jfblier.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jfblier.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jfblier.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jfblier.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jfblier.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jfblier.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jfblier.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jfblier.wordpress.com/314/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jfblier.wordpress.com&amp;blog=4198685&amp;post=314&amp;subd=jfblier&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jfblier.wordpress.com/2010/11/19/c-scripting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">jfblier</media:title>
		</media:content>

		<media:content url="http://jfblier.files.wordpress.com/2010/11/scripter.png" medium="image">
			<media:title type="html">Scripter</media:title>
		</media:content>
	</item>
		<item>
		<title>Close Form programmatically in c# in the constructor</title>
		<link>http://jfblier.wordpress.com/2010/09/25/close-form-programmatically-while-in-construction/</link>
		<comments>http://jfblier.wordpress.com/2010/09/25/close-form-programmatically-while-in-construction/#comments</comments>
		<pubDate>Sat, 25 Sep 2010 12:40:39 +0000</pubDate>
		<dc:creator>jfblier</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[WindowsForm]]></category>

		<guid isPermaLink="false">http://jfblier.wordpress.com/?p=308</guid>
		<description><![CDATA[Sometimes you instanciate a Form and you want to do some validations in the constructor. If the validation fails, you want to close the form. Calling Application.Exit() directly in the constructor won&#8217;t work. You need to call the Application.Exit in the OnLoad method. If you don&#8217;t want to see the form at all during the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jfblier.wordpress.com&amp;blog=4198685&amp;post=308&amp;subd=jfblier&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometimes you instanciate a Form and you want to do some validations in the constructor. If the validation fails, you want to close the form. Calling Application.Exit() directly in the constructor won&#8217;t work. </p>
<p>You need to call the Application.Exit in the OnLoad method. </p>
<p>If you don&#8217;t want to see the form at all during the validation process, put the window invisible on startup so it won&#8217;t be showed.</p>
<p>Set the WindowState to minimized and ShowInTaskbar to false in the Designer.<br />
If the validation succeeded, set the WindowState to normal or maximized and ShowInTaskbar to true.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jfblier.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jfblier.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jfblier.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jfblier.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jfblier.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jfblier.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jfblier.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jfblier.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jfblier.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jfblier.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jfblier.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jfblier.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jfblier.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jfblier.wordpress.com/308/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jfblier.wordpress.com&amp;blog=4198685&amp;post=308&amp;subd=jfblier&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jfblier.wordpress.com/2010/09/25/close-form-programmatically-while-in-construction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">jfblier</media:title>
		</media:content>
	</item>
		<item>
		<title>RichPanel improved</title>
		<link>http://jfblier.wordpress.com/2010/08/29/richpanel-improved/</link>
		<comments>http://jfblier.wordpress.com/2010/08/29/richpanel-improved/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 16:07:39 +0000</pubDate>
		<dc:creator>jfblier</dc:creator>
				<category><![CDATA[Control]]></category>
		<category><![CDATA[WindowsForm]]></category>

		<guid isPermaLink="false">http://jfblier.wordpress.com/?p=301</guid>
		<description><![CDATA[You can check my new expander (with a header and content controls) here I uploaded a new RichPanel with improvements. &#8211; Design time Expanded property support. &#8211; Prevent from disappearing while collapsing. &#8211; Overriding events instead of writing an event handler inside control. &#8211; Expanding mode now works also with DrawShadow=false (not necessarily set ShadowOffset=0). [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jfblier.wordpress.com&amp;blog=4198685&amp;post=301&amp;subd=jfblier&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You can check my new expander (with a header and content controls) <a href="http://jfblier.wordpress.com/2011/02/16/window-form-expander/">here</a></p>
<hr />
<br />
I uploaded a new <strong>RichPanel</strong> with improvements.<br />
 &#8211; Design time Expanded property support.<br />
 &#8211; Prevent from disappearing while collapsing.<br />
 &#8211; Overriding events instead of writing an event handler inside control.<br />
 &#8211; Expanding mode now works also with DrawShadow=false (not necessarily set ShadowOffset=0).<br />
 &#8211; Using small (+) (-) icons which looks better.<br />
 &#8211; Changing default values for some properties which which looks better in my opinion.<br />
 &#8211; Added a HotIcon for the header (mouse hover)</p>
<p><a href="http://www.mediafire.com/?ll8ds89oyrgl8wm">Source</a></p>
<p>Thanks to Mohammad Elmi for thoses improvements.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jfblier.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jfblier.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jfblier.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jfblier.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jfblier.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jfblier.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jfblier.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jfblier.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jfblier.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jfblier.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jfblier.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jfblier.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jfblier.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jfblier.wordpress.com/301/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jfblier.wordpress.com&amp;blog=4198685&amp;post=301&amp;subd=jfblier&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jfblier.wordpress.com/2010/08/29/richpanel-improved/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">jfblier</media:title>
		</media:content>
	</item>
		<item>
		<title>Stopwatch: Timing operations easily with precisions</title>
		<link>http://jfblier.wordpress.com/2010/05/04/stopwatch-timing-operations-easily-with-precisions/</link>
		<comments>http://jfblier.wordpress.com/2010/05/04/stopwatch-timing-operations-easily-with-precisions/#comments</comments>
		<pubDate>Wed, 05 May 2010 02:49:19 +0000</pubDate>
		<dc:creator>jfblier</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://jfblier.wordpress.com/?p=297</guid>
		<description><![CDATA[The System.Diagnostics namespace define a lot of classes. Stopwatch is one great class that allow to time operations with precision. Usage is really simple. Create a Stopwatch instance and use the Start() and Stop() methods to start and stop the counter. Use the ElapsedMilliseconds, Stopwatch timer = new Stopwatch(); timer.Start(); Thread.Sleep(10000); timer.Stop(); Trace.WriteLine(timer.ElapsedMilliseconds); Trace.WriteLine(timer.Elapsed); Trace.WriteLine(timer.ElapsedTicks); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jfblier.wordpress.com&amp;blog=4198685&amp;post=297&amp;subd=jfblier&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The System.Diagnostics namespace define a lot of classes.</p>
<p>Stopwatch is one great class that allow to time operations with precision.</p>
<p>Usage is really simple. Create a Stopwatch instance and use the Start() and Stop() methods to start and stop the counter. Use the ElapsedMilliseconds, </p>
<p><strong><br />
Stopwatch timer = new Stopwatch();<br />
timer.Start();<br />
Thread.Sleep(10000);<br />
timer.Stop();<br />
Trace.WriteLine(timer.ElapsedMilliseconds);<br />
Trace.WriteLine(timer.Elapsed);<br />
Trace.WriteLine(timer.ElapsedTicks);<br />
</strong></p>
<p>Output:<br />
<strong>10005<br />
00:00:10.0051010<br />
25990391</strong></p>
<p>You can use the <strong>Reset</strong> method to reinitialize the counter.</p>
<p>Here is the MSDN link to the <a href="http://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch.aspx">Stopwatch </a>class</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jfblier.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jfblier.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jfblier.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jfblier.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jfblier.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jfblier.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jfblier.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jfblier.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jfblier.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jfblier.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jfblier.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jfblier.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jfblier.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jfblier.wordpress.com/297/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jfblier.wordpress.com&amp;blog=4198685&amp;post=297&amp;subd=jfblier&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jfblier.wordpress.com/2010/05/04/stopwatch-timing-operations-easily-with-precisions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">jfblier</media:title>
		</media:content>
	</item>
		<item>
		<title>Disable method step-into with debugger</title>
		<link>http://jfblier.wordpress.com/2010/05/04/disable-method-step-into-with-debugger/</link>
		<comments>http://jfblier.wordpress.com/2010/05/04/disable-method-step-into-with-debugger/#comments</comments>
		<pubDate>Wed, 05 May 2010 00:11:37 +0000</pubDate>
		<dc:creator>jfblier</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[VisualStudio]]></category>

		<guid isPermaLink="false">http://jfblier.wordpress.com/?p=293</guid>
		<description><![CDATA[The attribute DebuggerHiddenAttribute indicate to the Visual Studio debugger that the method is not debuggable, so you can&#8217;t step in. [DebuggerHiddenAttribute] public void DoThis() { }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jfblier.wordpress.com&amp;blog=4198685&amp;post=293&amp;subd=jfblier&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The attribute <strong>DebuggerHiddenAttribute</strong> indicate to the Visual Studio debugger that the method is not debuggable, so you can&#8217;t step in.</p>
<p><strong>[DebuggerHiddenAttribute]<br />
public void DoThis()<br />
{<br />
}</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jfblier.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jfblier.wordpress.com/293/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jfblier.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jfblier.wordpress.com/293/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jfblier.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jfblier.wordpress.com/293/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jfblier.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jfblier.wordpress.com/293/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jfblier.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jfblier.wordpress.com/293/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jfblier.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jfblier.wordpress.com/293/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jfblier.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jfblier.wordpress.com/293/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jfblier.wordpress.com&amp;blog=4198685&amp;post=293&amp;subd=jfblier&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jfblier.wordpress.com/2010/05/04/disable-method-step-into-with-debugger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">jfblier</media:title>
		</media:content>
	</item>
		<item>
		<title>Enhancing debugging experinence with Debugger Display Attributes</title>
		<link>http://jfblier.wordpress.com/2010/05/04/enhancing-visual-studio-debugging-experinence-with-debugger-display-attributes/</link>
		<comments>http://jfblier.wordpress.com/2010/05/04/enhancing-visual-studio-debugging-experinence-with-debugger-display-attributes/#comments</comments>
		<pubDate>Tue, 04 May 2010 23:16:51 +0000</pubDate>
		<dc:creator>jfblier</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[VisualStudio]]></category>

		<guid isPermaLink="false">http://jfblier.wordpress.com/?p=274</guid>
		<description><![CDATA[Have you ever wrote a class with a lot of properties/members and using the debugger was unefficient due to the among of stuffs showed and the lack of formatting of the informations? Thanks to the attributes, you can decorate the members and properties to change the default apparence and behaviour in the debugger. Let&#8217;s say [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jfblier.wordpress.com&amp;blog=4198685&amp;post=274&amp;subd=jfblier&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Have you ever wrote a class with a lot of properties/members and using the debugger was unefficient due to the among of stuffs showed and the lack of formatting of the informations?</p>
<p>Thanks to the attributes, you can decorate the members and properties to change the default apparence and behaviour in the debugger. </p>
<p>Let&#8217;s say that you wrote this simple class:<br />
<pre class="brush: csharp;">
        public class Contact
        {
            public Contact(string name)
            {
                this.Name = name;
            }

            public string Name { get; set; }
            public List&lt;string&gt; Properties { get { return this.properties; } }

            private List&lt;string&gt; properties = new List&lt;string&gt;();
        }
</pre></p>
<p>Let&#8217;s use our newly created class:</p>
<p><pre class="brush: csharp;">
        static void Main(string[] args)
        {
            Contact c1 = new Contact(&quot;JF&quot;);
            c1.Properties.Add(&quot;P1&quot;);
            c1.Properties.Add(&quot;P2&quot;);
        }
</pre></p>
<p><BR></p>
<h3>Hiding unwanted properties/members</h3>
<p>You can see in the debugger that, the properties and Properties are in a way duplicated:</p>
<p><a href="http://jfblier.files.wordpress.com/2010/05/debugger1.png"><img src="http://jfblier.files.wordpress.com/2010/05/debugger1.png?w=600&#038;h=160" alt="" title="Debugger1" width="600" height="160" class="alignnone size-medium wp-image-278" /></a></p>
<p><strong>[DebuggerBrowsable(DebuggerBrowsableState.Never)]<br />
private List properties = new List();</strong></p>
<p>Note that DebuggerBrowsable attribute is defined in <strong>System.Diagnostics</strong>.</p>
<p>As stated in the MSDN documentation, <strong>DebuggerBrowsable</strong> constructor take a <strong>DebuggerBrowsableState</strong> enumeration values. The 3 values defined are:</p>
<ul>
•<strong>Never</strong> indicates that the member is not displayed in the data window. For example, using this value for the DebuggerBrowsableAttribute on a field removes the field from the hierarchy; the field is not displayed when you expand the enclosing type by clicking the plus sign (+) for the type instance.<br />
•<strong>Collapsed</strong> indicates that the member is displayed but not expanded by default. This is the default behavior.<br />
•<strong>RootHidden</strong> indicates that the member itself is not shown, but its constituent objects are displayed if it is an array or collection.
</ul>
<p><BR></p>
<h3>DebuggerDisplay</h3>
<p>You can also change the value formatting of every field/properties.</p>
<p>Imagine that you have a class and you want to have Count = 3 written without having to expand the class. you can use the Debugger display attribute to acheive it:</p>
<p><pre class="brush: csharp;">
[DebuggerDisplay(&quot;Count = {count}&quot;)]
class MyClass 
{
    public int count = 3;
}
</pre></p>
<p><a href="http://jfblier.files.wordpress.com/2010/05/debugger3.png"><img src="http://jfblier.files.wordpress.com/2010/05/debugger3.png?w=600&#038;h=161" alt="" title="Debugger3" width="600" height="161" class="alignnone size-full wp-image-289" /></a></p>
<p><a href="http://jfblier.files.wordpress.com/2010/05/debugger2.png"><img src="http://jfblier.files.wordpress.com/2010/05/debugger2.png?w=600&#038;h=161" alt="" title="Debugger2" width="600" height="161" class="alignnone size-full wp-image-287" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jfblier.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jfblier.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jfblier.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jfblier.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jfblier.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jfblier.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jfblier.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jfblier.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jfblier.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jfblier.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jfblier.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jfblier.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jfblier.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jfblier.wordpress.com/274/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jfblier.wordpress.com&amp;blog=4198685&amp;post=274&amp;subd=jfblier&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jfblier.wordpress.com/2010/05/04/enhancing-visual-studio-debugging-experinence-with-debugger-display-attributes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">jfblier</media:title>
		</media:content>

		<media:content url="http://jfblier.files.wordpress.com/2010/05/debugger1.png?w=300" medium="image">
			<media:title type="html">Debugger1</media:title>
		</media:content>

		<media:content url="http://jfblier.files.wordpress.com/2010/05/debugger3.png" medium="image">
			<media:title type="html">Debugger3</media:title>
		</media:content>

		<media:content url="http://jfblier.files.wordpress.com/2010/05/debugger2.png" medium="image">
			<media:title type="html">Debugger2</media:title>
		</media:content>
	</item>
		<item>
		<title>rethrowing a exception without loosing the callstack</title>
		<link>http://jfblier.wordpress.com/2010/04/27/rethrowing-a-exception-without-loosing-the-callstack/</link>
		<comments>http://jfblier.wordpress.com/2010/04/27/rethrowing-a-exception-without-loosing-the-callstack/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 23:49:50 +0000</pubDate>
		<dc:creator>jfblier</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://jfblier.wordpress.com/?p=271</guid>
		<description><![CDATA[If you don&#8217;t want to loose the call stack when you receive a exception and you just use the w keyword as in the following example: try { &#8230;. } catch (Exception) { &#8230; throw }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jfblier.wordpress.com&amp;blog=4198685&amp;post=271&amp;subd=jfblier&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you don&#8217;t want to loose the call stack when you receive a exception and you just use the w keyword as in the following example:</p>
<p>try<br />
{<br />
   &#8230;.<br />
}<br />
catch (Exception)<br />
{<br />
   &#8230;<br />
   throw<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jfblier.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jfblier.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jfblier.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jfblier.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jfblier.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jfblier.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jfblier.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jfblier.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jfblier.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jfblier.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jfblier.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jfblier.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jfblier.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jfblier.wordpress.com/271/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jfblier.wordpress.com&amp;blog=4198685&amp;post=271&amp;subd=jfblier&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jfblier.wordpress.com/2010/04/27/rethrowing-a-exception-without-loosing-the-callstack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">jfblier</media:title>
		</media:content>
	</item>
	</channel>
</rss>
