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(); }
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; }