簡體   English   中英

在NumericUpDown控件中設置光標位置

[英]Setting the cursor position in a NumericUpDown Control

我創建了一個從NumericUpDown控件繼承的用戶控件。 是否可以在控件內設置光標位置? 我正在驗證文本OnKeyUp,並在滿足某些條件時對其進行格式化。 為此,我必須做me.text = Fomatted(Me.Text),它將光標重新設置為位置0,我想將其設置為文本區域的末尾。

謝謝

采用

yourNumericUpDown.Select(desiredPosition,0)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM