فهرست منبع

添加SelectAll方法

章政 8 سال پیش
والد
کامیت
4668aa2e80
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      UAS-MES/CustomControl/TextBoxWithIcon/TextBoxGeneratePaCode.cs

+ 6 - 0
UAS-MES/CustomControl/TextBoxWithIcon/TextBoxGeneratePaCode.cs

@@ -12,6 +12,12 @@ namespace UAS_MES.CustomControl.TextBoxWithIcon
             toolTip1.SetToolTip(GeneratePaCode, "自动生成箱号");
         }
 
+        //选中全部文本
+        public void SelectAll()
+        {
+            enterTextBox1.SelectAll();
+        }
+
         private bool showClickIcon;
 
         //重写Text方法,用于接收或者传递值