随笔分类 -  .NET WinForm开发

摘要:我们在做winform应用的时候,大部分情况下都会碰到使用多线程控制界面上控件信息的问题。然而我们并不能用传统方法来做这个问题,下面我将详细的介绍。首先来看传统方法:运行这段代码,我们会看到系统抛出一个异常:Cross-thread operation not valid:Control 'textBox1' accessed from a thread other than the thread... 阅读全文
posted @ 2010-02-28 10:14 boer 阅读(448) 评论(0) 推荐(0)
摘要:一起学WPF系列WPF技术学习专题WPF 3.5抛砖引玉系列课程 阅读全文
posted @ 2009-07-27 09:58 boer 阅读(485) 评论(0) 推荐(0)
摘要:第一种: 下拉框动态赋值:private void Form1_Load(object sender, EventArgs e) { //获取数据源list this.Column1.DataSource = list; this.Column1.DisplayMember = ""; this.Column1.ValueMember = ""; }private DataGridViewCom... 阅读全文
posted @ 2009-07-13 10:05 boer 阅读(6043) 评论(0) 推荐(0)
摘要:获取DataGridView中单元格的坐标 Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> int x = dgAddMatInZSInfo.GetCellDisplayRectangle(e.ColumnIndex, e.RowIndex... 阅读全文
posted @ 2009-03-26 09:23 boer 阅读(270) 评论(0) 推荐(0)