<?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: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>Tue, 23 Jun 2009 16:55:43 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<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>
			<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>
		<item>
		<title>Sending WCF messages without creating a Proxy</title>
		<link>http://dotnetgeek.wordpress.com/2009/04/27/sending-wcf-messages-without-creating-a-proxy/</link>
		<comments>http://dotnetgeek.wordpress.com/2009/04/27/sending-wcf-messages-without-creating-a-proxy/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 15:10:20 +0000</pubDate>
		<dc:creator>indey</dc:creator>
				<category><![CDATA[How to's]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[Channel]]></category>
		<category><![CDATA[SVCUtil]]></category>

		<guid isPermaLink="false">http://dotnetgeek.wordpress.com/2009/04/27/sending-wcf-messages-without-creating-a-proxy/</guid>
		<description><![CDATA[We can send WCF messages from a client application(application that consumes the WCF service) even without creating a proxy object.
For that, we can use the ChannelFactory.
If we have a contract called IMycontract and there is a message called MyMessage in the Contract with the channel IMyChannel, follow these steps to send the message without SVCUtil.exe.

ChannelFactory&#60;IMyChannel&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=33&subd=dotnetgeek&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>We can send WCF messages from a client application(application that consumes the WCF service) even without creating a proxy object.<br />
For that, we can use the ChannelFactory.</p>
<p>If we have a contract called IMycontract and there is a message called MyMessage in the Contract with the channel IMyChannel, follow these steps to send the message without SVCUtil.exe.</p>
<div class="csharpcode">
<pre class="alt">ChannelFactory&lt;IMyChannel&gt; factory = <span class="kwrd">new</span> ChannelFactory&lt;IMyChannel&gt;(<span class="kwrd">new</span> BasicHttpBinding());
    IMyChannel channel = factory.CreateChannel(<span class="kwrd">new</span> EndpointAddress(<span class="str">"http://10.10.10.10:2298/MyService/Service.svc"</span>));</pre>
<pre class="alt">    channel.MyMessage (param1, param2);</pre>
</div>
<p>You can include the headers as well. The IMyChannel is derieved from IMyContract and System.ServiceModel.IClientChannel.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetgeek.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetgeek.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetgeek.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetgeek.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetgeek.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetgeek.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetgeek.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetgeek.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetgeek.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetgeek.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=33&subd=dotnetgeek&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetgeek.wordpress.com/2009/04/27/sending-wcf-messages-without-creating-a-proxy/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>Enumerating through System.Enum</title>
		<link>http://dotnetgeek.wordpress.com/2009/04/15/enumerating-through-systemenum/</link>
		<comments>http://dotnetgeek.wordpress.com/2009/04/15/enumerating-through-systemenum/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 15:49:09 +0000</pubDate>
		<dc:creator>indey</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[How to's]]></category>
		<category><![CDATA[dynamic programming]]></category>
		<category><![CDATA[enums]]></category>

		<guid isPermaLink="false">http://dotnetgeek.wordpress.com/2009/04/15/enumerating-through-systemenum/</guid>
		<description><![CDATA[I am working lately a lot on Reflection and WCF. So there will be quite a few posts on around those two.
This is one relates to the former category.
Problem: You want to create a Combo Box at runtime and the items to be included in the Combo Box should be read from an enum.
Solution: Read [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=32&subd=dotnetgeek&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I am working lately a lot on Reflection and WCF. So there will be quite a few posts on around those two.</p>
<p>This is one relates to the former category.</p>
<p><strong>Problem:</strong> You want to create a Combo Box at runtime and the items to be included in the Combo Box should be read from an enum.</p>
<p><strong>Solution: </strong>Read the Enumeration at runtime and fill the items of the combo box with them.</p>
<p>First get all the values from the Enumeration:</p>
<p><em>String[] names = System.Enum.GetNames(typeof(enumToRead));</em></p>
<p>enumToRead is the Enum which you have to read the names from.</p>
<p>Now, iterating through each of the names, add it to the Combo Box:</p>
<p><em>foreach (string name in lstProvider)     <br />{      <br />&#160;&#160; cboxMyComboBox.Items.Add(name);      <br /> }</em></p>
<p>You can similarly get all the values in the enum by:</p>
<p><em>Array enumVal = Enum.GetValues(typeof(enumToRead)) ;</em></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetgeek.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetgeek.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetgeek.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetgeek.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetgeek.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetgeek.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetgeek.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetgeek.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetgeek.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetgeek.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=32&subd=dotnetgeek&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetgeek.wordpress.com/2009/04/15/enumerating-through-systemenum/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>Retrieve the IP Address of the Machine</title>
		<link>http://dotnetgeek.wordpress.com/2009/04/07/retrieve-the-ip-address-of-the-machine/</link>
		<comments>http://dotnetgeek.wordpress.com/2009/04/07/retrieve-the-ip-address-of-the-machine/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 15:34:37 +0000</pubDate>
		<dc:creator>indey</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[How to's]]></category>
		<category><![CDATA[IpAddress]]></category>

		<guid isPermaLink="false">http://dotnetgeek.wordpress.com/2009/04/07/retrieve-the-ip-address-of-the-machine/</guid>
		<description><![CDATA[To retrieve the IP Address of the Machine on which the code is executed, you can use the following code:
&#160;
string hostName = System.Net.Dns.GetHostName(); //get the name of the computer…
//gets the Ipaddress of the machine…
string IPAdd = System.Net.Dns.GetHostEntry(hostName ).AddressList[0].ToString();&#160;&#160; 
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=31&subd=dotnetgeek&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>To retrieve the IP Address of the Machine on which the code is executed, you can use the following code:</p>
<p>&#160;</p>
<p>string hostName = System.Net.Dns.GetHostName(); //get the name of the computer…</p>
<p>//gets the Ipaddress of the machine…</p>
<p>string IPAdd = System.Net.Dns.GetHostEntry(hostName ).AddressList[0].ToString();&#160;&#160; </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetgeek.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetgeek.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetgeek.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetgeek.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetgeek.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetgeek.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetgeek.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetgeek.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetgeek.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetgeek.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=31&subd=dotnetgeek&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetgeek.wordpress.com/2009/04/07/retrieve-the-ip-address-of-the-machine/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>AddressAccessDeniedException &#8211; SOLUTION</title>
		<link>http://dotnetgeek.wordpress.com/2009/03/07/addressaccessdeniedexception-solution/</link>
		<comments>http://dotnetgeek.wordpress.com/2009/03/07/addressaccessdeniedexception-solution/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 07:58:32 +0000</pubDate>
		<dc:creator>indey</dc:creator>
				<category><![CDATA[How to's]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[AddressAccessDeniedException]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://dotnetgeek.wordpress.com/2009/03/07/addressaccessdeniedexception-solution/</guid>
		<description><![CDATA[If you a try to host a service in Windows Vista, you will receive an AddressAccessDeniedException. It is because of overly secured environment of the Windows Vista.
You will receive an error stating
HTTP could not register URL http://+:8000/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details).
You get this error because [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=29&subd=dotnetgeek&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you a try to host a service in Windows Vista, you will receive an AddressAccessDeniedException. It is because of overly secured environment of the Windows Vista.</p>
<p>You will receive an error stating</p>
<p><em><strong>HTTP could not register URL </strong></em><a href="http://+:8000/"><em><strong>http://+:8000/</strong></em></a><em><strong>. Your process does not have access rights to this namespace (see </strong></em><a href="http://go.microsoft.com/fwlink/?LinkId=70353"><em><strong>http://go.microsoft.com/fwlink/?LinkId=70353</strong></em></a><em><strong> for details).</strong></em></p>
<p>You get this error because the owner of the http publishing is the built in administrator and you will not be running with administrator privileges.</p>
<p>You have to add the HTTP namespace to your user account. For that run the Command Prompt as an Administrator and run this command:</p>
<p><strong><span style="font-family:Tahoma;"><em>netsh http add urlacl url=http://+:8000/ user=DOMAIN\UserName</em></span></strong> </p>
<p>You can more details <a href="http://blogs.msdn.com/drnick/archive/2006/10/16/configuring-http-for-windows-vista.aspx" target="_blank">here</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetgeek.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetgeek.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetgeek.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetgeek.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetgeek.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetgeek.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetgeek.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetgeek.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetgeek.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetgeek.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=29&subd=dotnetgeek&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetgeek.wordpress.com/2009/03/07/addressaccessdeniedexception-solution/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>Starting Threads with Multiple Parameters</title>
		<link>http://dotnetgeek.wordpress.com/2009/03/06/starting-threads-with-multiple-parameters/</link>
		<comments>http://dotnetgeek.wordpress.com/2009/03/06/starting-threads-with-multiple-parameters/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 12:29:17 +0000</pubDate>
		<dc:creator>indey</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[How to's]]></category>
		<category><![CDATA[Anonymous Delegates]]></category>
		<category><![CDATA[Threading]]></category>

		<guid isPermaLink="false">http://dotnetgeek.wordpress.com/2009/03/06/starting-threads-with-multiple-parameters/</guid>
		<description><![CDATA[To start a thread with a method having parameters, one cannot use the traditional way of starting a thread. 
The best way is to use a Anonymous Delegate to start a thread.
Here’s the sample:
MyParameteredMethod is my method which accepts 3 parameters. I wish to start this method in a new thread. 
MyParameteredMethod is my paramet
ThreadStart [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=27&subd=dotnetgeek&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>To start a thread with a method having parameters, one cannot use the traditional way of starting a thread. </p>
<p>The best way is to use a Anonymous Delegate to start a thread.</p>
<p>Here’s the sample:</p>
<p>MyParameteredMethod is my method which accepts 3 parameters. I wish to start this method in a new thread. </p>
<pre>MyParameteredMethod is my paramet</pre>
<pre>ThreadStart ts = delegate() { MyParameteredMethod(param1, param2, param3); };
Thread t = new Thread(ts);
t.Start();</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotnetgeek.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotnetgeek.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotnetgeek.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotnetgeek.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotnetgeek.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotnetgeek.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotnetgeek.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotnetgeek.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotnetgeek.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotnetgeek.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotnetgeek.wordpress.com&blog=1804669&post=27&subd=dotnetgeek&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dotnetgeek.wordpress.com/2009/03/06/starting-threads-with-multiple-parameters/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>