C# 全选中数字文本框内容
生活随笔
收集整理的這篇文章主要介紹了
C# 全选中数字文本框内容
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
/// <summary>
??????? /// 全選中數字文本框內容
??????? /// </summary>
??????? /// <param name="o"></param>
??????? public static void numericSelectAll(this object o)
??????? {
??????????? System.Windows.Forms.NumericUpDown upDown = (System.Windows.Forms.NumericUpDown)o;
??????????? upDown.Focus();
??????????? System.Windows.Forms.UpDownBase up = upDown;
??????????? upDown.Select(0, up.Text.Length);
??????? }
轉載于:https://www.cnblogs.com/LuoEast/p/7753733.html
總結
以上是生活随笔為你收集整理的C# 全选中数字文本框内容的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Objective-C:MRC(引用计数
- 下一篇: linux用户及用户组管理