浏览代码

添加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方法,用于接收或者传递值