摘要: 1.网上下载WinSw.NET4.exe 配置文件内: <configuration> <!-- ID of the service. It should be unique accross the Windows system--> <!-- id,name,修改成对应服务的名称--> <id>S 阅读全文
posted @ 2020-07-17 16:12 Besos 阅读(2333) 评论(0) 推荐(0)
摘要: 解决跨线程操作控件 - 可使用委托方法 解决方法: public void SetlableText(string str,int i) { label1.Text = str + i; } private void btnsearch_Click(object sender, EventArgs 阅读全文
posted @ 2020-07-17 15:56 Besos 阅读(138) 评论(0) 推荐(0)
摘要: x.ToString("0.##") 与 x.ToString("0.00")的不同 static void Main(string[] args) { decimal a = 6.157800M; decimal b = 6.12M; decimal c = 6.1570M; decimal d 阅读全文
posted @ 2020-07-17 15:17 Besos 阅读(3505) 评论(2) 推荐(0)
摘要: DataGridView列增加单选按钮,并设置被选中 1.DataGridView新增列时,设置属性 “ColumnType” = DataGridViewCheckBoxColumn 2.可使用CellContentClick事件 if (this.data.Columns[e.ColumnInd 阅读全文
posted @ 2020-07-17 14:55 Besos 阅读(1451) 评论(0) 推荐(0)
摘要: DataGridView自动添加序号 DataGridView找到RowPostPaint事件 private void dg_item_info_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) { SetDataGr 阅读全文
posted @ 2020-07-17 11:35 Besos 阅读(446) 评论(0) 推荐(0)