Setting the cursor position in a NumericUpDown Control

I created a user control that inherits from the NumericUpDown control. Can I set the cursor position in a control? I check the text of OnKeyUp and formatting it when it meets certain criteria. To do this, I need to do me.text = Fomatted (Me.Text), which returns the cursor to position 0, I want to set it to the end of the text area.

thank

0
source share
1 answer

use

yourNumericUpDown.Select(desiredPosition,0)
+2
source

All Articles