摘要: class CtrEnabled { [System.Runtime.InteropServices.DllImport("user32.dll ")] static extern int SetWindowLong(IntPtr hWnd, int nIndex, int wndproc); [S 阅读全文
posted @ 2020-05-13 16:31 学竹 阅读(926) 评论(0) 推荐(0) 编辑
摘要: 借鉴了冰封一夏的控件重绘与Albin的DevExpress GridControl 单元格添加进度条(ProgressBar)完成,特别感谢 private void gridView1_CustomDrawCell(object sender, DevExpress.XtraGrid.Views. 阅读全文
posted @ 2020-05-11 10:51 学竹 阅读(562) 评论(0) 推荐(0) 编辑
摘要: private void Draw(Rectangle rectangle, Graphics g, int _radius, bool cusp, Color begin_color, Color end_color) { int span = 2; //抗锯齿 g.SmoothingMode = 阅读全文
posted @ 2020-05-08 09:11 学竹 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Rectangle rec = new Rectangle(e.Bounds.X + 327, e.Bounds.Y, this.Width/3, this.Height); if (ProgressBarRenderer.IsSupported) { ProgressBarRenderer.Dra 阅读全文
posted @ 2020-05-07 17:30 学竹 阅读(339) 评论(0) 推荐(0) 编辑
摘要: //本机config操作 Configuration configs = System.Configuration.ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); configs.AppSettings. 阅读全文
posted @ 2020-04-14 11:00 学竹 阅读(1660) 评论(0) 推荐(0) 编辑