文章分类 -  控件

c#中的删除确认对话框
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->privatevoidDataGridView1_UserDeletingRow( objectsender,DataGridViewRowCancelEventArgse) { ... 阅读全文
posted @ 2008-09-15 03:02 晃晃悠悠 阅读(2224) 评论(0) 推荐(0)
button中附加数据的赋值与读取
摘要:原理:利用tag属性,它可以存放任意的object 方法: 1 建立一个存储数据的类,比如 class bValue { public string myValue; } 2 存储数据 bValue v1 = new bValue(); v1.myValue = "111"; butt... 阅读全文
posted @ 2008-09-15 00:25 晃晃悠悠 阅读(426) 评论(0) 推荐(0)
button在点击后取得按键的属性
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->privatevoidbuttonX2_Click(objectsender,EventArgse) { DevComponents.Dot... 阅读全文
posted @ 2008-09-15 00:02 晃晃悠悠 阅读(415) 评论(0) 推荐(0)
对于调用动态生成控件的解决方法
摘要:首先声明一个全局的对象数组,然后在每次动态创建控件的时候都把声称的这个空间对象保存如数组,以后就可以通过数组调用了 int object_num=0; //全局变量,保存生成控件的个数,方便调用 object[] objectname=new object[100]; //生成对象数组 ....... objectname[object_num]=myo... 阅读全文
posted @ 2008-09-09 01:45 晃晃悠悠 阅读(209) 评论(0) 推荐(0)
DotNet Bar 之 bubbleBar 使用方法
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->privatevoidbuttonX1_Click(objectsender,EventArgse) { //添加bartab中的按键 ... 阅读全文
posted @ 2008-09-06 07:56 晃晃悠悠 阅读(1833) 评论(0) 推荐(0)