示例#1
0
        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;
        }
示例#2
0
 /// <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;
 }
示例#3
0
        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();
        }
示例#4
0
        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();
        }
示例#5
0
 public ChensNumberBox() : base()
 {
     this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.Font        = ControlCommon.GetDefaultFont();
 }
示例#6
0
 public ChensCheckBox()
     : base()
 {
     this.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.Font      = ControlCommon.GetDefaultFont();
 }
示例#7
0
 public ChensLabel()
 {
     this.Font = ControlCommon.GetDefaultFont();
 }
示例#8
0
 public ChensMenuStrip()
 {
     this.Font      = ControlCommon.GetDefaultFont();
     this.BackColor = System.Drawing.Color.LightSteelBlue;
 }
示例#9
0
 public ChensGroupBox()
 {
     this.Font = ControlCommon.GetDefaultFont();
 }
示例#10
0
 public ChensButton() : base()
 {
     this.Font      = ControlCommon.GetDefaultFont();
     this.BackColor = mouseNotInColor;
 }