摘要: 1.右键解决方案资源管理器中你的项目名,【添加】>【新建项】,选择列表中的【应用程序配置文件】,默认文件即是App.Config。确定。 2.打开App.Config,初始的XML代码为: <xml version="1.0" encoding="utf-8" > <configuration> < 阅读全文
posted @ 2018-07-26 10:32 蒲公英的约定&h 阅读(2817) 评论(0) 推荐(0) 编辑
摘要: dgv.ColumnHeadersDefaultCellStyle.WrapMode = DataGridViewTriState.False; //设置列标题不换行 // 设定包括Header和所有单元格的列宽自动调整dgv.AutoSizeColumnsMode = DataGridViewAu 阅读全文
posted @ 2018-07-06 14:09 蒲公英的约定&h 阅读(161) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 单元格内容滚动 /// </summary> bool isScorll = true; List<string> lstName = new List<string>(); private void ScrollContent(string colValue, 阅读全文
posted @ 2018-07-04 17:18 蒲公英的约定&h 阅读(156) 评论(0) 推荐(0) 编辑
摘要: public static void AutoWidth(DataGridView dgv, DataTable dt) { int i = 0; int w_Count = 0; int w = 0; int width = dgv.Width; int avgWidth = width / dt 阅读全文
posted @ 2018-07-03 13:56 蒲公英的约定&h 阅读(210) 评论(0) 推荐(0) 编辑
摘要: dataGridView2.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; dataGridView_EquipSelect.RowTemplate.Height = 40; / 阅读全文
posted @ 2018-07-02 17:32 蒲公英的约定&h 阅读(257) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 设置自动跳行选择 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> int index = 0;//dgv索引 bool b = false;//判断是否未向 阅读全文
posted @ 2018-06-29 10:32 蒲公英的约定&h 阅读(169) 评论(0) 推荐(0) 编辑
摘要: int j = 1; private void timer1_Tick(object sender, EventArgs e) { timer1.Enabled = false; GetData(j); } private void Frm生产任务看板_Load(object sender, Eve 阅读全文
posted @ 2018-06-21 14:01 蒲公英的约定&h 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 用两个时间timer控件来控制,index为当前索引,没选择一行后先++,再把上一行的选择Selected=false,再选择下一行,要不然会出现一条条累加选择 阅读全文
posted @ 2018-06-20 15:08 蒲公英的约定&h 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-06-20 09:57 蒲公英的约定&h 阅读(420) 评论(0) 推荐(0) 编辑
摘要: string sqlWhere = string.Empty; string sqlWhere2 = string.Empty; if (!string.IsNullOrEmpty(textBox2.Text)) { sqlWhere += " and pick_doc like '%" + tex 阅读全文
posted @ 2018-06-16 14:11 蒲公英的约定&h 阅读(138) 评论(0) 推荐(0) 编辑