<?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: Convert Handle to Form, and Vice Versa</title>
	<atom:link href="http://www.csharp411.com/convert-handle-to-form-and-vice-versa/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.csharp411.com/convert-handle-to-form-and-vice-versa/</link>
	<description>C# Development</description>
	<lastBuildDate>Fri, 03 Feb 2012 11:14:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Jonno</title>
		<link>http://www.csharp411.com/convert-handle-to-form-and-vice-versa/#comment-645</link>
		<dc:creator>Jonno</dc:creator>
		<pubDate>Thu, 20 Oct 2011 00:57:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/convert-handle-to-form-and-vice-versa/#comment-645</guid>
		<description>While it&#039;s perfectly valid to use Form.Handle to get the IntPtr window handle, it&#039;s probably not good to include the
Form form = new Form();
in the previous line without mentioning the inner workings of creating a handle - it&#039;s far from trivial how that occurs and forcing a handle to be created immediately after calling the Form c&#039;tor is far from best practice. The property Control.IsHandleCreated wouldn&#039;t exist if it was trivial.
Normally, a reference to a Control.Handle shouldn&#039;t be kept in an application but rather used for &quot;immediate consumption&quot; i.e. use it to find out if your window is the active window.</description>
		<content:encoded><![CDATA[<p>While it&#8217;s perfectly valid to use Form.Handle to get the IntPtr window handle, it&#8217;s probably not good to include the<br />
Form form = new Form();<br />
in the previous line without mentioning the inner workings of creating a handle &#8211; it&#8217;s far from trivial how that occurs and forcing a handle to be created immediately after calling the Form c&#8217;tor is far from best practice. The property Control.IsHandleCreated wouldn&#8217;t exist if it was trivial.<br />
Normally, a reference to a Control.Handle shouldn&#8217;t be kept in an application but rather used for &#8220;immediate consumption&#8221; i.e. use it to find out if your window is the active window.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fivefingers</title>
		<link>http://www.csharp411.com/convert-handle-to-form-and-vice-versa/#comment-644</link>
		<dc:creator>fivefingers</dc:creator>
		<pubDate>Sat, 21 May 2011 09:28:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/convert-handle-to-form-and-vice-versa/#comment-644</guid>
		<description>I am curious to find out what blog platform you’re using? I’m having some minor security problems with my latest website and I would like to find something more safe. Do you have any solutions? Hmm it looks like your blog ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I too am an aspiring blog blogger but I’m still new to everything. Do you have any points for newbie blog writers? I’d certainly appreciate it.</description>
		<content:encoded><![CDATA[<p>I am curious to find out what blog platform you’re using? I’m having some minor security problems with my latest website and I would like to find something more safe. Do you have any solutions? Hmm it looks like your blog ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I too am an aspiring blog blogger but I’m still new to everything. Do you have any points for newbie blog writers? I’d certainly appreciate it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

