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