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