public class NumericEditBoxBase : NumericEditBox { public NumericEditBoxBase() { InitializeComponent(); } private void InitializeComponent() { this.SuspendLayout(); this.VisualStyle = Janus.Windows.GridEX.VisualStyle.Office2010; this.OfficeColorScheme = Janus.Windows.GridEX.OfficeColorScheme.Custom; this.ValueType = Janus.Windows.GridEX.NumericEditValueType.Int64; this.TextAlignment = Janus.Windows.GridEX.TextAlignment.Center; this.Enter += new System.EventHandler(this.NumericEditBoxBase_Enter); this.Leave += new System.EventHandler(this.NumericEditBoxBase_Leave); this.ResumeLayout(false); } private void NumericEditBoxBase_Enter(object sender, EventArgs e) { this.OfficeCustomColor = Color.Black; this.BackColor = Color.DimGray; this.ForeColor = Color.FromKnownColor(KnownColor.Window); } private void NumericEditBoxBase_Leave(object sender, EventArgs e) { this.OfficeCustomColor = Color.DimGray; this.BackColor = Color.FromKnownColor(KnownColor.Window); this.ForeColor = Color.FromKnownColor(KnownColor.WindowText); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)