摘要: 多选下拉框 var workname = new Ext.form.MultiSelect({ store: pointComboBoxStore, fieldLabel: '工作面', labelStyle: 'text-align:right', displayField: 'wz', valueField: 'Point', width: 280, editable: false, mode: 'lo... 阅读全文
posted @ 2014-03-07 13:43 honging 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 在窗体初始化后添加一句代码this.MaximizedBounds = Screen.PrimaryScreen.WorkingArea; 阅读全文
posted @ 2013-12-24 11:31 honging 阅读(629) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.codeproject.com/Articles/91387/Painting-Your-Own-Tabs-Second-Edition在网上看到重绘TabControl例子,很实用,但是现在还存在Bug,正在努力修改! 阅读全文
posted @ 2013-10-28 18:10 honging 阅读(562) 评论(0) 推荐(0) 编辑
摘要: var workAreaGrid = new Ext.grid.GridPanel({ region: 'west', title: '工作面预警结果', store: wkSto, width: 500, split: true, margins: "0 3 0 0", stripeRows: true, autoExpandColumn: '4', // loadMask:... 阅读全文
posted @ 2013-10-25 09:10 honging 阅读(676) 评论(0) 推荐(0) 编辑
摘要: 两个数据转换成double型做差,会出现误差,转换成Decimal就OK了。 阅读全文
posted @ 2013-09-30 10:12 honging 阅读(124) 评论(0) 推荐(0) 编辑
摘要: DataGridViewTextBoxColumn dgv_IDY = new DataGridViewTextBoxColumn(); dgv_IDY.Visible = false; dgv_IDY.HeaderText = "IDY"; dgv_IDY.Name = "IDY"; DataGridViewTextBoxColumn dgv_IDT = new DataGridViewTextBoxColumn(); dgv_IDT.Visible = false; ... 阅读全文
posted @ 2013-09-29 17:35 honging 阅读(244) 评论(0) 推荐(0) 编辑
摘要: private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) { // 对第日期列相同单元格进行合并 if (e.ColumnIndex == 2 && e.RowIndex != -1) { using( Brush gridBrush = new SolidBrush(this.dataGridView1.GridColor... 阅读全文
posted @ 2013-09-11 16:33 honging 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 在winform中,取datagridview某个单元格的值,然后与另外一个值相减,如果相减等于0,结果却为-7.105427357601E-15Convert.ToDouble(xun_dataGridView.Rows[index].Cells["sb_JD"].Value) - Convert.ToDouble(end_scdt.Rows[index]["B" +i])解决办法,加上toString();Convert.ToDouble(xun_dataGridView.Rows[index].Cells["sb_JD"].V. 阅读全文
posted @ 2013-08-29 11:18 honging 阅读(159) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/aimeng/archive/2012/03/13/2393244.html 阅读全文
posted @ 2013-04-19 16:38 honging 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 只写了一部分功能:View Code #include<stdio.h>#include<stdlib.h>#include<malloc.h>#define STACK_INIT_SIZE 100#define STACKINCREMENT 10typedef struct{ int *base; int *top; int stacksize;}SqStack;void InitStack(SqStack &S);int DestroyStack(SqStack &S);int ClearStack(SqStack &S);int 阅读全文
posted @ 2012-09-19 15:03 honging 阅读(145) 评论(0) 推荐(0) 编辑