<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
    <channel>
        <title>Rydal's .Net Clr </title>
        <link>http://blog.dotnetclr.com/Default.aspx</link>
        <description>Simplifying application development with C#</description>
        <language>en-US</language>
        <copyright>Rydal Williams</copyright>
        <managingEditor>blog@rydalwilliams.com</managingEditor>
        <generator>Subtext Version 1.9.5.177</generator>
        <image>
            <title>Rydal's .Net Clr </title>
            <url>http://blog.dotnetclr.com/images/RSS2Image.gif</url>
            <link>http://blog.dotnetclr.com/Default.aspx</link>
            <width>77</width>
            <height>60</height>
        </image>
        <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/dotnetclr" type="application/rss+xml" /><feedburner:emailServiceId>1163597</feedburner:emailServiceId><feedburner:feedburnerHostname>http://www.feedburner.com</feedburner:feedburnerHostname><item>
            <title>Selecting a node on right click</title>
            <link>http://blog.dotnetclr.com/archive/2008/08/10/selecting-a-node-on-right-click.aspx</link>
            <description>&lt;p&gt;There are so many things that I see or have seen in my development career that are unexplainable. Its leaves me with a grunt face, going, why in the world did Microsoft do this? Anyway, I've been doing a lot of windows client development these days and I noticed that when using a tree view control with a context menu, the actual tree view node does not get selected when you right click, it keeps the last selected node. Here is a fix for that.&lt;/p&gt;  &lt;div class="csharpcode"&gt;   &lt;pre&gt;&lt;span class="lnum"&gt;   1:  &lt;/span&gt;&lt;span class="kwrd"&gt;private&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; treeView_MouseDown(&lt;span class="kwrd"&gt;object&lt;/span&gt; sender, MouseEventArgs e)&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;   2:  &lt;/span&gt;{&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;   3:  &lt;/span&gt;    &lt;span class="kwrd"&gt;if&lt;/span&gt; (e.Button != MouseButtons.Right)&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;   4:  &lt;/span&gt;        &lt;span class="kwrd"&gt;return&lt;/span&gt;;&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;   5:  &lt;/span&gt;    treeView.SelectedNode = treeView.GetNodeAt(e.X, e.Y);&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="lnum"&gt;   6:  &lt;/span&gt;}&lt;/pre&gt;
&lt;/div&gt;&lt;img src="http://blog.dotnetclr.com/aggbug/479.aspx" width="1" height="1" /&gt;
&lt;p&gt;&lt;a href="http://feeds.feedburner.com/~a/dotnetclr?a=UvWaK8"&gt;&lt;img src="http://feeds.feedburner.com/~a/dotnetclr?i=UvWaK8" border="0"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/dotnetclr/~4/361180220" height="1" width="1"/&gt;</description>
            <dc:creator>Rydal Williams</dc:creator>
            <guid>http://blog.dotnetclr.com/archive/2008/08/10/selecting-a-node-on-right-click.aspx</guid>
            <pubDate>Sun, 10 Aug 2008 16:25:42 GMT</pubDate>
            <wfw:comment>http://blog.dotnetclr.com/comments/479.aspx</wfw:comment>
            <comments>http://blog.dotnetclr.com/archive/2008/08/10/selecting-a-node-on-right-click.aspx#feedback</comments>
            <wfw:commentRss>http://blog.dotnetclr.com/comments/commentRss/479.aspx</wfw:commentRss>
            <trackback:ping>http://blog.dotnetclr.com/services/trackbacks/479.aspx</trackback:ping>
        </item>
        <item>
            <title>The mind of a developer - mapped!</title>
            <link>http://blog.dotnetclr.com/archive/2008/08/05/the-mind-of-a-developer---mapped.aspx</link>
            <description>&lt;p&gt; &lt;/p&gt; &lt;p&gt;&lt;a href="http://mingle2.com/blog/view/web-developer-mind"&gt;Mind of a web developer&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blog.dotnetclr.com/aggbug/478.aspx" width="1" height="1" /&gt;
&lt;p&gt;&lt;a href="http://feeds.feedburner.com/~a/dotnetclr?a=teADWI"&gt;&lt;img src="http://feeds.feedburner.com/~a/dotnetclr?i=teADWI" border="0"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/dotnetclr/~4/356565314" height="1" width="1"/&gt;</description>
            <dc:creator>Rydal Williams</dc:creator>
            <guid>http://blog.dotnetclr.com/archive/2008/08/05/the-mind-of-a-developer---mapped.aspx</guid>
            <pubDate>Tue, 05 Aug 2008 17:14:52 GMT</pubDate>
            <wfw:comment>http://blog.dotnetclr.com/comments/478.aspx</wfw:comment>
            <comments>http://blog.dotnetclr.com/archive/2008/08/05/the-mind-of-a-developer---mapped.aspx#feedback</comments>
            <wfw:commentRss>http://blog.dotnetclr.com/comments/commentRss/478.aspx</wfw:commentRss>
            <trackback:ping>http://blog.dotnetclr.com/services/trackbacks/478.aspx</trackback:ping>
        </item>
        <item>
            <title>What was I coding 6 years ago?</title>
            <link>http://blog.dotnetclr.com/archive/2008/06/20/what-was-i-coding-6-years-ago.aspx</link>
            <description>&lt;p&gt;Amazing! While discussing some domain names earlier on in the day with another developer, I thought about a domain that I use to own and was developing a long time ago. Anyway, I had an idea and I wanted to bring it alive, somehow I got caught with other things and that idea never really prevailed. It was a memory brought alive because somehow I couldn't just let it go, so I decided to dig for the originally site and a few hours later I gave up, because digging through my 2TB storage is not fun, anyway, I strolled over to the archive.org and viola! &lt;/p&gt;  &lt;p&gt;Amazingly, I found all of these cool things that I did a long time ago and now, it simply looks like crap but at the same time amazing. My favorite was my operating system that I started writing code named "&lt;strong&gt;SEKTOR&lt;/strong&gt;", yes, I was that crazy and still is and YES, I got the name "&lt;strong&gt;SEKTOR&lt;/strong&gt;" from &lt;strong&gt;Mortal Kombat&lt;/strong&gt; the video game since I was a champ several times in a row before adulthood kicked in. My point is, it felt good to go back in time and see work that I have completely forgotten about. If you are interested, please feel free to take a sneak peek at my ex-operating system, well some of it...and my writing goodness! its plain BAD! I believe I'm somewhat better now.  Assembly language looks like gibberish to me now but back then it was my C#, my forte.&lt;/p&gt;  &lt;p&gt;&lt;a title="http://web.archive.org/web/20021213041549/www.programmersnet.com/sektor/" href="http://web.archive.org/web/20021213041549/www.programmersnet.com/sektor/"&gt;http://web.archive.org/web/20021213041549/www.programmersnet.com/sektor/&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blog.dotnetclr.com/aggbug/477.aspx" width="1" height="1" /&gt;
&lt;p&gt;&lt;a href="http://feeds.feedburner.com/~a/dotnetclr?a=iBJAbx"&gt;&lt;img src="http://feeds.feedburner.com/~a/dotnetclr?i=iBJAbx" border="0"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/dotnetclr/~4/315944869" height="1" width="1"/&gt;</description>
            <dc:creator>Rydal Williams</dc:creator>
            <guid>http://blog.dotnetclr.com/archive/2008/06/20/what-was-i-coding-6-years-ago.aspx</guid>
            <pubDate>Fri, 20 Jun 2008 04:30:45 GMT</pubDate>
            <wfw:comment>http://blog.dotnetclr.com/comments/477.aspx</wfw:comment>
            <comments>http://blog.dotnetclr.com/archive/2008/06/20/what-was-i-coding-6-years-ago.aspx#feedback</comments>
            <wfw:commentRss>http://blog.dotnetclr.com/comments/commentRss/477.aspx</wfw:commentRss>
            <trackback:ping>http://blog.dotnetclr.com/services/trackbacks/477.aspx</trackback:ping>
        </item>
        <item>
            <title>Button element in IE vs FireFox behave differently</title>
            <link>http://blog.dotnetclr.com/archive/2008/06/05/button-element-in-ie-vs-firefox-behave-differently.aspx</link>
            <description>&lt;p&gt;When are all the browsers going to unite? It's hard enough to build solid web applications within reasonable time. For as long as I've been building web applications, it would be a dare to say that every application that I build work in at least the top 3 major browsers, and that's because I learn something new everyday and it just doesn't happen that way.&lt;/p&gt;  &lt;p&gt;Today while working on a new project for one of my clients, I was being all fancy by using the "Button" element which I don't normally do. Instead of using "&amp;lt;button&amp;gt;", I usually use "&amp;lt;input type=button". however, today I was going out of habit and to my surprise the "&amp;lt;button&amp;gt;" control does not work the same way across browsers.&lt;/p&gt;  &lt;p&gt;Example, if you create a simple button control on a basic html form an perform a simple task on the &lt;strong&gt;&lt;u&gt;onclick&lt;/u&gt;&lt;/strong&gt; event such as a redirect, you will find out really quickly that it works perfectly fine in &lt;strong&gt;IE&lt;/strong&gt; but not in &lt;strong&gt;FF&lt;/strong&gt;.&lt;/p&gt;  &lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;button&lt;/span&gt; &lt;span class="attr"&gt;onclick&lt;/span&gt;&lt;span class="kwrd"&gt;="window.location.href='somepage.html';"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;New Page&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;button&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;It turns out that in FF, the default action for the button control is to submit a form, so you have to return false to use the button control for anything else other than submitting a form.&lt;/p&gt;

&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;button&lt;/span&gt; &lt;span class="attr"&gt;onclick&lt;/span&gt;&lt;span class="kwrd"&gt;="window.location.href='somepage.html';return false;"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;New Page&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;button&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;

&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;weird huh?&lt;/span&gt;&lt;/pre&gt;&lt;img src="http://blog.dotnetclr.com/aggbug/476.aspx" width="1" height="1" /&gt;
&lt;p&gt;&lt;a href="http://feeds.feedburner.com/~a/dotnetclr?a=dJk2TQ"&gt;&lt;img src="http://feeds.feedburner.com/~a/dotnetclr?i=dJk2TQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/dotnetclr/~4/305759720" height="1" width="1"/&gt;</description>
            <dc:creator>Rydal Williams</dc:creator>
            <guid>http://blog.dotnetclr.com/archive/2008/06/05/button-element-in-ie-vs-firefox-behave-differently.aspx</guid>
            <pubDate>Fri, 06 Jun 2008 02:52:19 GMT</pubDate>
            <wfw:comment>http://blog.dotnetclr.com/comments/476.aspx</wfw:comment>
            <comments>http://blog.dotnetclr.com/archive/2008/06/05/button-element-in-ie-vs-firefox-behave-differently.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://blog.dotnetclr.com/comments/commentRss/476.aspx</wfw:commentRss>
            <trackback:ping>http://blog.dotnetclr.com/services/trackbacks/476.aspx</trackback:ping>
        </item>
    </channel>
</rss>
