工作原因,需要将进度信息显示,并可以保存所以写了个小控件,有需要的朋友可以看下
我只做了正确与错误的显示,其它的可以跟据枚举操作
环境: .NET 2.0
代码
我只做了正确与错误的显示,其它的可以跟据枚举操作
环境: .NET 2.0
1using System;
2using System.Collections;
3using System.ComponentModel;
4using System.Drawing;
5using System.Windows.Forms;
6using System.IO;
7
8
9namespace ProCtrlLib
10{
11 /// <summary>
12 /// 描述:采用LISTVIEW形式加载消息
13 /// 作者:ForrestSun
14 /// 日期: 2006-7-17
15 /// </summary>
16
17 [ToolboxBitmap(typeof(ProMessageBox), "ProMessageBox")]
18 public partial class ProMessageBox : UserControl
19 {
20
21 public ProMessageBox()
22 {
23 InitializeComponent();
24 }
25
26
27 private void cmnuClearInfo_Click(object sender, EventArgs e)
28 {
29 ClearInfo();
30 }
31
32 function
143
144 private void cmnuExportInfo_Click(object sender, EventArgs e)
145 {
146 this.ExportToTxt();
147 }
148 }
149
150
151}
152
2using System.Collections;
3using System.ComponentModel;
4using System.Drawing;
5using System.Windows.Forms;
6using System.IO;
7
8
9namespace ProCtrlLib
10{
11 /// <summary>
12 /// 描述:采用LISTVIEW形式加载消息
13 /// 作者:ForrestSun
14 /// 日期: 2006-7-17
15 /// </summary>
16
17 [ToolboxBitmap(typeof(ProMessageBox), "ProMessageBox")]
18 public partial class ProMessageBox : UserControl
19 {
20
21 public ProMessageBox()
22 {
23 InitializeComponent();
24 }
25
26
27 private void cmnuClearInfo_Click(object sender, EventArgs e)
28 {
29 ClearInfo();
30 }
31
32 function
143
144 private void cmnuExportInfo_Click(object sender, EventArgs e)
145 {
146 this.ExportToTxt();
147 }
148 }
149
150
151}
152
代码