C#
文章平均质量分 52
Wiiix
这个作者很懒,什么都没留下…
展开
-
C# 判断字符串是否为数字
函数:private bool IsNumeric(string str) { int output; return int.TryParse(str, out output); } 调用例子: string str="12345"; if (IsNumeric(str)) MessageBox.Show("纯数字"); else MessageBox.Show("不是纯数字"原创 2015-06-27 21:21:56 · 1090 阅读 · 0 评论 -
C# 控制另一个窗体的方法
public partial class Form1 : Form //窗体一 { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Form2 frm = new Form2(翻译 2015-06-27 23:54:03 · 1537 阅读 · 0 评论 -
快速理解C#中的委托与事件
以下内容只是个人理解,仅供参考。 什么是委托? 先看最简单的委托例子: namespace DelegateTest { public delegate void MessageDelegate(string name); class Program { private static void SaySomething(string name)原创 2016-05-20 20:02:30 · 8620 阅读 · 3 评论