public ChensCheckComboBox() : base() { // set draw mode to owner draw this.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; //DrawMode.OwnerDrawFixed this.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.Font = ControlCommon.GetDefaultFont(); this.Height = 23; }
/// <summary> /// /// </summary> public ChensComboBox() : base() { this.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.Font = ControlCommon.GetDefaultFont(); this.Height = 23; this.BackColor = System.Drawing.Color.White; this.FormattingEnabled = true; this.DropDownStyle = ComboBoxStyle.DropDownList; }
public ChensPage() { this.Font = ControlCommon.GetDefaultFont(); this.BackColor = System.Drawing.Color.White; InitializeComponent(); _dDividPage = new DividPage(DefaultPageShowCounts); this.CurrentPageShowCounts = DefaultPageShowCounts; this.txtPageRecords.Text = CurrentPageShowCounts.ToString(); ShowPage(); }
public ChensDataGridView() { this.Font = ControlCommon.GetDefaultFont(); this.BackgroundColor = System.Drawing.Color.WhiteSmoke; this.GridColor = System.Drawing.Color.LightGray; this.AlternatingRowsDefaultCellStyle.BackColor = System.Drawing.Color.White; this.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.RowHeadersVisible = false; this.BorderStyle = System.Windows.Forms.BorderStyle.None; this.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; this.RowsDefaultCellStyle.SelectionBackColor = System.Drawing.Color.CornflowerBlue; this.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; this.AutoGenerateColumns = false; //this.CellContentDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgv_CellContentDoubleClick); this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.dgv_CellMouseDown); InitializeComponent(); }
private void ChensMenuButton1_Paint(object sender, PaintEventArgs e) { Graphics g = e.Graphics; //画底色 52,65,74 SolidBrush b = new SolidBrush(Color.FromArgb(50, 150, 185)); g.FillRectangle(b, 0, 0, this.Width, this.Height); //画边框 Pen p = new Pen(Color.FromArgb(40, 47, 56)); g.DrawRectangle(p, 0, 0, this.Width - 1, this.Height - 1); //画文字 g.DrawString(jsmodule.Name, this.Font, new SolidBrush(Color.White), new PointF(80, 11)); //画图标 ControlCommon.DrawMenuIcon(g, jsmodule.ID); }
public ChensNumberBox() : base() { this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.Font = ControlCommon.GetDefaultFont(); }
public ChensCheckBox() : base() { this.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.Font = ControlCommon.GetDefaultFont(); }
public ChensLabel() { this.Font = ControlCommon.GetDefaultFont(); }
public ChensMenuStrip() { this.Font = ControlCommon.GetDefaultFont(); this.BackColor = System.Drawing.Color.LightSteelBlue; }
public ChensGroupBox() { this.Font = ControlCommon.GetDefaultFont(); }
public ChensButton() : base() { this.Font = ControlCommon.GetDefaultFont(); this.BackColor = mouseNotInColor; }