public SinglelineTextBox(IFocusChanged focusChanged) : base(focusChanged) { this.KeyDown += new KeyEventHandler(SinglelineTextBox_OnKeyDown); }
public GridTextBox(IFocusChanged callback) { m_callback = callback; this.KeyDown += new KeyEventHandler(GridTextBox_OnKeyDown); this.TextChanged += new EventHandler(OnTextChanged); }
public MultilineTextBox(IFocusChanged callback) : base(callback) { base.Multiline = true; base.AcceptsReturn = true; base.WordWrap = true; base.enableAutoComplete = false; using (Graphics g = Graphics.FromHwnd(this.Handle)) { heightFactor = g.MeasureString("qA",base.Font).Height; float fontHeight = base.Font.Height; fuzzyHeight = base.Size.Height - heightFactor; } this.KeyDown += new KeyEventHandler(MultilineTextBox_OnKeyDown); }
public GridComboBox(IFocusChanged focus,string[] items) { m_callback = focus; this.DropDownStyle = ComboBoxStyle.DropDownList; this.KeyDown += new KeyEventHandler(GridTextBox_OnKeyDown); Items.Add(""); Items.AddRange(items); }