![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C# .NET
ait2008
这个作者很懒,什么都没留下…
展开
-
C#中TextBox只允许输入数字或者带负号或者小数点
<br />(1)新建一个windows应用程序,将其命名为HardlyEnableFigure<br />(2)在窗体中添加TextBox控件,用于输入要验证的数字<br />(3)主要代码:<br />using System.Data;<br />using System.Drawing;<br />using System.Text;<br />using System.Windows.Forms;<br />namespace HardlyEnableFigure<br />{<br />原创 2010-10-15 20:13:00 · 3369 阅读 · 0 评论 -
正则表达式
<br />今天写了一段程序用于控制台验证正则表达式的<br />using System;<br />using System.Text.RegularExpressions;<br />class RegexMatches<br />{<br /> public static void Main()<br /> {<br /> Regex expression = new Regex(@"].*/d[0-35-9]-/d/d-/d/d");<br /> strin原创 2010-11-20 16:13:00 · 356 阅读 · 0 评论