2007年10月23日

打印出控件的所有子控件

摘要: private StringBuilder GetAllControlnIheForm(Control control, StringBuilder sb) { foreach (Control c in control.Controls) { sb.Append(c.GetTy... 阅读全文

posted @ 2007-10-23 14:36 步走高飞 阅读(164) 评论(0) 推荐(0)

获取其他窗口中控件的方法

摘要: ((DataGridView)Application.OpenForms["ListViewForm"].Controls["panel1"].Controls["dataGridView1"]).DataSource = null; 阅读全文

posted @ 2007-10-23 14:28 步走高飞 阅读(282) 评论(0) 推荐(0)

导航