<?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 for nothing</title>
	<atom:link href="http://squaretoo.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://squaretoo.com</link>
	<description>without you i am</description>
	<lastBuildDate>Mon, 10 Oct 2011 09:55:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Converting String to Integer by Hayami</title>
		<link>http://squaretoo.com/2011/06/converting-string-to-integer/#comment-9</link>
		<dc:creator>Hayami</dc:creator>
		<pubDate>Mon, 10 Oct 2011 09:55:45 +0000</pubDate>
		<guid isPermaLink="false">http://squaretoo.com/?p=3#comment-9</guid>
		<description>ok nerd</description>
		<content:encoded><![CDATA[<p>ok nerd</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Converting String to Integer by cabbo</title>
		<link>http://squaretoo.com/2011/06/converting-string-to-integer/#comment-8</link>
		<dc:creator>cabbo</dc:creator>
		<pubDate>Mon, 10 Oct 2011 09:53:36 +0000</pubDate>
		<guid isPermaLink="false">http://squaretoo.com/?p=3#comment-8</guid>
		<description>you could just limit the input in the textbox using events. So for the textbox, have a KeyPress event that checks if the input is a number (or . or - or , or whatever) and handle it if so or deny it if not.

did a quick google search and found this snippit at http://www.syncfusion.com/faq/windowsforms/faq_c94c.aspx#q830q 
&lt;code&gt;
public class NumbersOnlyTextBox : TextBox 
{ 
     public NumbersOnlyTextBox() 
     { 
          this.KeyPress += new KeyPressEventHandler(HandleKeyPress); 
     } 

     private void HandleKeyPress(object sender, KeyPressEventArgs e) 
     { 
          if(!char.IsDigit(e.KeyChar) &amp;&amp; !char.IsControl(e.KeyChar)) 
               e.Handled = true; 
     } 
} 
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>you could just limit the input in the textbox using events. So for the textbox, have a KeyPress event that checks if the input is a number (or . or &#8211; or , or whatever) and handle it if so or deny it if not.</p>
<p>did a quick google search and found this snippit at <a href="http://www.syncfusion.com/faq/windowsforms/faq_c94c.aspx#q830q" rel="nofollow">http://www.syncfusion.com/faq/windowsforms/faq_c94c.aspx#q830q</a><br />
<code><br />
public class NumbersOnlyTextBox : TextBox<br />
{<br />
     public NumbersOnlyTextBox()<br />
     {<br />
          this.KeyPress += new KeyPressEventHandler(HandleKeyPress);<br />
     } </p>
<p>     private void HandleKeyPress(object sender, KeyPressEventArgs e)<br />
     {<br />
          if(!char.IsDigit(e.KeyChar) &amp;&amp; !char.IsControl(e.KeyChar))<br />
               e.Handled = true;<br />
     }<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>

