摘要: C# winform 动态添加控件 以及 事件以下代码将在加载窗体时动态生成若干按钮,并排列显示在winform上using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System... 阅读全文
posted @ 2009-12-09 22:48 ggbbeyou 阅读(873) 评论(0) 推荐(0) 编辑
摘要: int indexNum = this.dataGridView1.SelectedCells[0].ColumnIndex; string ColumnText = this.dataGridView1.Columns[indexNum].HeaderText.ToString(); foreach(Control ctl in this.panel.Controls) { i... 阅读全文
posted @ 2009-12-09 22:43 ggbbeyou 阅读(270) 评论(0) 推荐(0) 编辑