![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
chenzhehui
这个作者很懒,什么都没留下…
展开
-
利用异常判断输入的错误,并重新输入
以下用C#举一个例子:using System;public class Test{ public static void Main() { while (true) { try { int num = int.Parse(Console.Rea原创 2009-03-29 10:24:00 · 1076 阅读 · 0 评论 -
C#实现文本框内的tab键作用
代码如下: // // textBox1 // this.textBox1.Location = new System.Drawing.Point(12, 39); this.textBox1.Multiline = true; this.textBox1.Name = "text原创 2009-04-06 02:06:00 · 1345 阅读 · 0 评论 -
打开文件(读取文件),并实现显示
private void 打开OToolStripMenuItem_Click(object sender, EventArgs e) { //第三方流 Stream myStream; //定义一个打开文件对话框 OpenFileDialog openFileDialog1原创 2009-04-06 02:01:00 · 659 阅读 · 0 评论