using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using UAS_MES_NEW.Entity; namespace UAS_MES_NEW.CustomControl.TextBoxWithIcon { public partial class SnCollectionBox : EnterTextBox { public SnCollectionBox() { InitializeComponent(); } public override string Text { get { if (SystemInf.UpperCollection) return base.Text.ToUpper(); else return base.Text; } set { base.Text = value; } } private void SnCollectionBox_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { this.SelectAll(); } } } }