<?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>nothin but dotnet</title>
	<atom:link href="http://dotnetgeek.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dotnetgeek.wordpress.com</link>
	<description>My logs as i learn this fantabulous product of Microsoft...</description>
	<lastBuildDate>Thu, 03 Dec 2009 16:05:24 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='dotnetgeek.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/57edcd149972d26bc4b2e28761f65370?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>nothin but dotnet</title>
		<link>http://dotnetgeek.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dotnetgeek.wordpress.com/osd.xml" title="nothin but dotnet" />
		<item>
		<title>Convert MemoryStream to String</title>
		<link>http://dotnetgeek.wordpress.com/2009/12/03/convert-memorystream-to-string/</link>
		<comments>http://dotnetgeek.wordpress.com/2009/12/03/convert-memorystream-to-string/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 16:05:24 +0000</pubDate>
		<dc:creator>indey</dc:creator>
				<category><![CDATA[How to's]]></category>
		<category><![CDATA[IO]]></category>

		<guid isPermaLink="false">http://dotnetgeek.wordpress.com/2009/12/03/convert-memorystream-to-string/</guid>
		<description><![CDATA[Converting a Memory Stream to String:
memstream.Flush();       &#160;&#160;&#160;&#160;&#160; memstream.Position = 0;        &#160;&#160;&#160;&#160;&#160; StreamReader sreader = new StreamReader(memstream);        string str = sreader .ReadToEnd();

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=48&subd=dotnetgeek&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Converting a Memory Stream to String:</p>
<blockquote><p><strong>memstream.Flush();       <br />&#160;&#160;&#160;&#160;&#160; memstream.Position = 0;        <br />&#160;&#160;&#160;&#160;&#160; StreamReader sreader = new StreamReader(memstream);        <br />string str = sreader .ReadToEnd();</strong></p>
</blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetgeek.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetgeek.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetgeek.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetgeek.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetgeek.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetgeek.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetgeek.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetgeek.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetgeek.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetgeek.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=48&subd=dotnetgeek&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetgeek.wordpress.com/2009/12/03/convert-memorystream-to-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/449876bb249ebd366466bd2d6e0c0099?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">indey</media:title>
		</media:content>
	</item>
		<item>
		<title>Schema Validation in WCF Messages</title>
		<link>http://dotnetgeek.wordpress.com/2009/12/03/schema-validation-in-wcf-messages/</link>
		<comments>http://dotnetgeek.wordpress.com/2009/12/03/schema-validation-in-wcf-messages/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 15:59:13 +0000</pubDate>
		<dc:creator>indey</dc:creator>
				<category><![CDATA[How to's]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[Schema Validation]]></category>

		<guid isPermaLink="false">http://dotnetgeek.wordpress.com/2009/12/03/schema-validation-in-wcf-messages/</guid>
		<description><![CDATA[I was of the opinion that the messages that are received and sent from the WCF services validate the messages against the schemas since we see the message directly in the implementation classes.
But I was so wrong, the only validation that occurs in WCF messages by default is the serialization validation – i.e. the structure [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=47&subd=dotnetgeek&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was of the opinion that the messages that are received and sent from the WCF services validate the messages against the schemas since we see the message directly in the implementation classes.</p>
<p>But I was so wrong, the only validation that occurs in WCF messages by default is the serialization validation – i.e. the structure correctness of the messages. They are not strictly validated against the schemas.</p>
<p>Hence my requirement was this – validate the messages against the schemas that are used to generate the contract files. </p>
<p>The answer is – <strong>Message Inspectors</strong></p>
<p>You create&#160; a message inspector by implementing the IClientMessageInspector and the IDispatchMessageInspector interfaces.</p>
<p>Then extend the EndPointBehaviour by extending the IEndpointBehavior interface.</p>
<p>Though there are some very good blogs that tell you how to do that, I couldn’t find enough help to solve my problem. I create the endpoints in the code and host services dynamically using reflection.</p>
<p>Some good starting resources:</p>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/aa717047.aspx" target="_blank">Message Inspectors on MSDN</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/cc949095.aspx#Step8" target="_blank">MSDN</a> </li>
<li><a href="http://wcfsecurity.codeplex.com/wikipage?title=How%20To%20-%20Perform%20Message%20Validation%20with%20Schemas%20in%20WCF&amp;ProjectName=wcfsecurity" target="_blank">CodePlex</a> </li>
<li><a href="http://www.vistax64.com/indigo/123627-assigning-behavior-configuration-dynamically-using-code.html" target="_blank">Good Resource on adding the Behaviour dynamically.</a></li>
</ul>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetgeek.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetgeek.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetgeek.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetgeek.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetgeek.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetgeek.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetgeek.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetgeek.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetgeek.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetgeek.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=47&subd=dotnetgeek&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetgeek.wordpress.com/2009/12/03/schema-validation-in-wcf-messages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/449876bb249ebd366466bd2d6e0c0099?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">indey</media:title>
		</media:content>
	</item>
		<item>
		<title>Custom ToolStrip Text Box</title>
		<link>http://dotnetgeek.wordpress.com/2009/12/03/custom-toolstrip-text-box/</link>
		<comments>http://dotnetgeek.wordpress.com/2009/12/03/custom-toolstrip-text-box/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 15:44:26 +0000</pubDate>
		<dc:creator>indey</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Custom Controls]]></category>
		<category><![CDATA[ToolStripTextBox]]></category>

		<guid isPermaLink="false">http://dotnetgeek.wordpress.com/2009/12/03/custom-toolstrip-text-box/</guid>
		<description><![CDATA[It’s so implicit that you create your own control when you do not get enough features in an out-of-the-box control.
I needed to add a ToolStripTextBox to my tool bar and wanted to resize the control when the parent control is resized.
I don’t understand why MSFT does not allow us to do that as we do [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=46&subd=dotnetgeek&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>It’s so implicit that you create your own control when you do not get enough features in an out-of-the-box control.</p>
<p>I needed to add a ToolStripTextBox to my tool bar and wanted to resize the control when the parent control is resized.</p>
<p>I don’t understand why MSFT does not allow us to do that as we do for a normal out-of.the-box Text Box.</p>
<p>The only option I was left is to create my own ToolStripTextBox. After writing 70% of the code for my custom control, I noticed that MSDN already had this readymade code to offer. So, I did what an intelligent person would do – use it <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms404304.aspx" target="_blank">Here is the link in MSDN</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetgeek.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetgeek.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetgeek.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetgeek.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetgeek.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetgeek.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetgeek.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetgeek.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetgeek.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetgeek.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=46&subd=dotnetgeek&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetgeek.wordpress.com/2009/12/03/custom-toolstrip-text-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/449876bb249ebd366466bd2d6e0c0099?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">indey</media:title>
		</media:content>
	</item>
		<item>
		<title>How to convert string to stream in .NET</title>
		<link>http://dotnetgeek.wordpress.com/2009/08/05/how-to-convert-string-to-stream-in-net/</link>
		<comments>http://dotnetgeek.wordpress.com/2009/08/05/how-to-convert-string-to-stream-in-net/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 15:54:20 +0000</pubDate>
		<dc:creator>indey</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[How to's]]></category>
		<category><![CDATA[IO]]></category>
		<category><![CDATA[Streams]]></category>

		<guid isPermaLink="false">http://dotnetgeek.wordpress.com/2009/08/05/how-to-convert-string-to-stream-in-net/</guid>
		<description><![CDATA[There are some things which are seemingly simple but are difficult to get done for the first time at least. This is one of them. 
The other day I had to get a Stream from the String I had. Though it was apparently easy, it took me quite a while to figure it out. Nevertheless [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=45&subd=dotnetgeek&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>There are some things which are seemingly simple but are difficult to get done for the first time at least. This is one of them. </p>
<p>The other day I had to get a Stream from the String I had. Though it was apparently easy, it took me quite a while to figure it out. Nevertheless here’s what I did:</p>
<pre>MemoryStream myStream = new MemoryStream(ASCIIEncoding.Default.GetBytes(&quot;My String&quot;));</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetgeek.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetgeek.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetgeek.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetgeek.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetgeek.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetgeek.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetgeek.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetgeek.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetgeek.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetgeek.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=45&subd=dotnetgeek&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetgeek.wordpress.com/2009/08/05/how-to-convert-string-to-stream-in-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/449876bb249ebd366466bd2d6e0c0099?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">indey</media:title>
		</media:content>
	</item>
		<item>
		<title>LINQ to XML intro</title>
		<link>http://dotnetgeek.wordpress.com/2009/08/05/linq-to-xml-intro/</link>
		<comments>http://dotnetgeek.wordpress.com/2009/08/05/linq-to-xml-intro/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 15:49:40 +0000</pubDate>
		<dc:creator>indey</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[LINQ]]></category>
		<category><![CDATA[links]]></category>

		<guid isPermaLink="false">http://dotnetgeek.wordpress.com/2009/08/05/linq-to-xml-intro/</guid>
		<description><![CDATA[Recently I had a requirement where I had to create an XML file without any definitive structure but from a Class file. I had to write a tag for each class and a child property for each property.
Then instead of going for a primitive method of using the XML Document class, I went for LINQ [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=44&subd=dotnetgeek&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Recently I had a requirement where I had to create an XML file without any definitive structure but from a Class file. I had to write a tag for each class and a child property for each property.</p>
<p>Then instead of going for a primitive method of using the XML Document class, I went for LINQ to XML. The XElement makes life very easy when writing an XML. I just had to write 2 recursive methods to write the entire XML file.</p>
<p><a href="http://www.universalthread.com/ViewPageArticle.aspx?Session=6C586C352B773237436F4D3D203375467A306247506C6B4E6A6A6C55783434745146513D3D" target="_blank">This article</a> helped a lot.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetgeek.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetgeek.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetgeek.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetgeek.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetgeek.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetgeek.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetgeek.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetgeek.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetgeek.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetgeek.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=44&subd=dotnetgeek&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetgeek.wordpress.com/2009/08/05/linq-to-xml-intro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/449876bb249ebd366466bd2d6e0c0099?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">indey</media:title>
		</media:content>
	</item>
		<item>
		<title>Microsoft Word Programming &#8211; Links</title>
		<link>http://dotnetgeek.wordpress.com/2009/06/23/microsoft-word-programming-links/</link>
		<comments>http://dotnetgeek.wordpress.com/2009/06/23/microsoft-word-programming-links/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 16:55:43 +0000</pubDate>
		<dc:creator>indey</dc:creator>
				<category><![CDATA[DOM]]></category>
		<category><![CDATA[Document Object Model]]></category>
		<category><![CDATA[VSTO]]></category>
		<category><![CDATA[Word Programming]]></category>

		<guid isPermaLink="false">http://dotnetgeek.wordpress.com/2009/06/23/microsoft-word-programming-links/</guid>
		<description><![CDATA[This is Links collection post for Microsoft Word Programming.
Visual Studio Tools for the Microsoft Office System – MSDN
Word Object Model Overview – MSDN
Understanding the Word Object Model from a .NET Developer&#8217;s Perspective
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=43&subd=dotnetgeek&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is Links collection post for Microsoft Word Programming.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/aa192492(office.11).aspx#vstointro_link3" target="_blank">Visual Studio Tools for the Microsoft Office System – MSDN</a></p>
<p><a href="http://msdn.microsoft.com/en-us/library/kw65a0we.aspx" target="_blank">Word Object Model Overview – MSDN</a></p>
<p><a href="http://msdn.microsoft.com/en-us/library/aa192495(office.11).aspx" target="_blank">Understanding the Word Object Model from a .NET Developer&#8217;s Perspective</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetgeek.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetgeek.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetgeek.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetgeek.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetgeek.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetgeek.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetgeek.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetgeek.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetgeek.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetgeek.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=43&subd=dotnetgeek&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetgeek.wordpress.com/2009/06/23/microsoft-word-programming-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/449876bb249ebd366466bd2d6e0c0099?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">indey</media:title>
		</media:content>
	</item>
		<item>
		<title>SplitButton in .net</title>
		<link>http://dotnetgeek.wordpress.com/2009/06/17/splitbutton-in-net/</link>
		<comments>http://dotnetgeek.wordpress.com/2009/06/17/splitbutton-in-net/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 16:43:43 +0000</pubDate>
		<dc:creator>indey</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Custom Controls]]></category>
		<category><![CDATA[Controls]]></category>
		<category><![CDATA[Split Button]]></category>

		<guid isPermaLink="false">http://dotnetgeek.wordpress.com/2009/06/17/splitbutton-in-net/</guid>
		<description><![CDATA[We do not have a built in split button in .net Framework. The work around is use tool strip split button which is not that useful in aesthetic perspective.
This is very good article where the author extended the standard Button control and modified it into a split button.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=41&subd=dotnetgeek&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>We do not have a built in split button in .net Framework. The work around is use tool strip split button which is not that useful in aesthetic perspective.</p>
<p><a href="http://blogs.msdn.com/jfoscoding/articles/491523.aspx" target="_blank">This is very good article</a> where the author extended the standard Button control and modified it into a split button.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetgeek.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetgeek.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetgeek.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetgeek.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetgeek.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetgeek.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetgeek.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetgeek.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetgeek.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetgeek.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=41&subd=dotnetgeek&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetgeek.wordpress.com/2009/06/17/splitbutton-in-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/449876bb249ebd366466bd2d6e0c0099?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">indey</media:title>
		</media:content>
	</item>
		<item>
		<title>WCF Tutorials &#8211; Links Collection</title>
		<link>http://dotnetgeek.wordpress.com/2009/06/16/wcf-tutorials-links-collection/</link>
		<comments>http://dotnetgeek.wordpress.com/2009/06/16/wcf-tutorials-links-collection/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 16:32:56 +0000</pubDate>
		<dc:creator>indey</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://dotnetgeek.wordpress.com/2009/06/16/wcf-tutorials-links-collection/</guid>
		<description><![CDATA[A Good link for a beginner in WCF.
Windows Communication Foundation – A beginner’s guide
Conceptual Overview in MSDN
What is Windows Communication Foundation on MSDN
ABC’s of Windows Communication Foundation – I like this  
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=40&subd=dotnetgeek&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A Good link for a beginner in WCF.</p>
<p><a href="http://www.geocities.com/contactgirish/wcf_beginner_tutorial.html" target="_blank">Windows Communication Foundation – A beginner’s guide</a></p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms731190.aspx" target="_blank">Conceptual Overview in MSDN</a></p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms731082.aspx" target="_blank">What is Windows Communication Foundation on MSDN</a></p>
<p><a href="http://msdn.microsoft.com/en-us/magazine/cc163647.aspx" target="_blank">ABC’s of Windows Communication Foundation</a> – I like this <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetgeek.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetgeek.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetgeek.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetgeek.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetgeek.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetgeek.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetgeek.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetgeek.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetgeek.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetgeek.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=40&subd=dotnetgeek&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetgeek.wordpress.com/2009/06/16/wcf-tutorials-links-collection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/449876bb249ebd366466bd2d6e0c0099?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">indey</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding Attributes at runtime</title>
		<link>http://dotnetgeek.wordpress.com/2009/05/26/adding-attributes-at-runtime/</link>
		<comments>http://dotnetgeek.wordpress.com/2009/05/26/adding-attributes-at-runtime/#comments</comments>
		<pubDate>Tue, 26 May 2009 15:48:12 +0000</pubDate>
		<dc:creator>indey</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[How to's]]></category>
		<category><![CDATA[C# advanced]]></category>
		<category><![CDATA[COM]]></category>
		<category><![CDATA[Reflection]]></category>

		<guid isPermaLink="false">http://dotnetgeek.wordpress.com/2009/05/26/adding-attributes-at-runtime/</guid>
		<description><![CDATA[Modifying a Type at runtime is always difficult.
Requirement: Object must be assigned to a PropertyGrid. To expand the nested complex types in the Object, TypeConvertor attributes should be added to the properties of the type. Type should be modified not be modified at design time.
Solution: The PropertyGrid does not expand the nested complex types of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=37&subd=dotnetgeek&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Modifying a Type at runtime is always difficult.</p>
<p><strong>Requirement: </strong>Object must be assigned to a PropertyGrid. To expand the nested complex types in the Object, TypeConvertor attributes should be added to the properties of the type. Type should be modified not be modified at design time.</p>
<p><strong>Solution:</strong> The PropertyGrid does not expand the nested complex types of an object assigned to it, if the complex type is a user-defined object. We need to add <em>TypeConverterAttribute(typeof(ExpandableObjectConverter) </em>to the user-defined types. Since I cannot modify the user-defined type at design time, it was not a feasible option. That leaves me with two alternatives:</p>
<p>Alternative 1: Tweak the Property Grid to show the nested Complex types. Given the Complexity of Property Grid and the time constraint to solve the problem, I had to go to the second alternative.</p>
<p>Alternative 2: After searching&#160; lot on the internet, I stumbled <a href="http://social.msdn.microsoft.com/forums/en-US/winformsdesigner/thread/4fb1b301-618d-4b5e-8b89-e0595c005b16/" target="_blank">here</a>. The way to achieve the task is to bluff the Property Grid. Before you create the object, add the attributes to the properties of the type at runtime using COM (not Reflection). What you do is tell the Property Grid that the Type you used has the Attributes required for the former display the nested complex types.</p>
<p>The Code goes something like this:</p>
<div class="csharpcode">
<pre class="alt">AttributeCollection oldAttributes = TypeDescriptor.GetAttributes(type); </pre>
<pre>Attribute[] newAttributes = <span class="kwrd">new</span> Attribute[oldAttributes.Count + 1]; </pre>
<pre class="alt">oldAttributes.CopyTo(newAttributes, 0); </pre>
<pre>newAttributes[oldAttributes.Count] = <span class="kwrd">new</span> TypeConverterAttribute(<span class="kwrd">typeof</span>(ExpandableObjectConverter)); </pre>
<pre class="alt">TypeDescriptor.AddAttributes(type, newAttributes);</pre>
</div>
<p>.csharpcode, .csharpcode pre<br />
{<br />
	font-size: small;<br />
	color: black;<br />
	font-family: consolas, &#8220;Courier New&#8221;, courier, monospace;<br />
	background-color: #ffffff;<br />
	/*white-space: pre;*/<br />
}<br />
.csharpcode pre { margin: 0em; }<br />
.csharpcode .rem { color: #008000; }<br />
.csharpcode .kwrd { color: #0000ff; }<br />
.csharpcode .str { color: #006080; }<br />
.csharpcode .op { color: #0000c0; }<br />
.csharpcode .preproc { color: #cc6633; }<br />
.csharpcode .asp { background-color: #ffff00; }<br />
.csharpcode .html { color: #800000; }<br />
.csharpcode .attr { color: #ff0000; }<br />
.csharpcode .alt<br />
{<br />
	background-color: #f4f4f4;<br />
	width: 100%;<br />
	margin: 0em;<br />
}<br />
.csharpcode .lnum { color: #606060; }</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetgeek.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetgeek.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetgeek.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetgeek.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetgeek.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetgeek.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetgeek.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetgeek.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetgeek.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetgeek.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=37&subd=dotnetgeek&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetgeek.wordpress.com/2009/05/26/adding-attributes-at-runtime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/449876bb249ebd366466bd2d6e0c0099?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">indey</media:title>
		</media:content>
	</item>
		<item>
		<title>Reading appsettings from config file</title>
		<link>http://dotnetgeek.wordpress.com/2009/05/14/reading-appsettings-from-config-file/</link>
		<comments>http://dotnetgeek.wordpress.com/2009/05/14/reading-appsettings-from-config-file/#comments</comments>
		<pubDate>Thu, 14 May 2009 15:36:26 +0000</pubDate>
		<dc:creator>indey</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[How to's]]></category>
		<category><![CDATA[appsettings]]></category>
		<category><![CDATA[config]]></category>

		<guid isPermaLink="false">http://dotnetgeek.wordpress.com/2009/05/14/reading-appsettings-from-config-file/</guid>
		<description><![CDATA[Every application has a configuration file and you want to have some keys in that file which are 

application specific 
easily accessible in the application 
have read and write operations

Read the keys with the following code:
System.Configuration.ConfigurationSettings.AppSettings[&#34;keyname&#34;];

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=36&subd=dotnetgeek&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Every application has a configuration file and you want to have some keys in that file which are </p>
<ul>
<li>application specific </li>
<li>easily accessible in the application </li>
<li>have read and write operations</li>
</ul>
<p>Read the keys with the following code:</p>
<blockquote><p>System.Configuration.ConfigurationSettings.AppSettings[&quot;keyname&quot;];</p>
</blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetgeek.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetgeek.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetgeek.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetgeek.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetgeek.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetgeek.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetgeek.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetgeek.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetgeek.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetgeek.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=36&subd=dotnetgeek&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetgeek.wordpress.com/2009/05/14/reading-appsettings-from-config-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/449876bb249ebd366466bd2d6e0c0099?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">indey</media:title>
		</media:content>
	</item>
	</channel>
</rss>