On Aug 22, 2:41 pm, za...@construct ion-imaging.com wrote:
On Aug 22, 10:50 am, JoCom67 <joco...@gmail. comwrote:
>
How do you highlight (or select) the value of a numeric field after
you to this field.
>
After you what do to this field?
Coming from another field, once the tab key is pressed, it should
select (highlight) the numeric value so that when the user types in
the new value it will just override or overwrite the previous numeric
value of this field.
On Aug 25, 4:19 pm, JoCom67 <joco...@gmail. comwrote:
On Aug 22, 2:41 pm, za...@construct ion-imaging.com wrote:
>
On Aug 22, 10:50 am, JoCom67 <joco...@gmail. comwrote:
>
How do you highlight (or select) the value of a numeric field after
you to this field.
>
After you what do to this field?
>
Coming from another field, once the tab key is pressed, it should
select (highlight) the numeric value so that when the user types in
the new value it will just override or overwrite the previous numeric
value of this field.
Pressing TAB brings you to NumericUpDown control normally, then all
you have to do is to handle GofFocus event as follows:
' Code Lines are splitted for a proper paste
' Select entire value
Private Sub NumericUpDown1_ GotFocus _
(ByVal sender As System.Object, _
ByVal e As System.EventArg s) Handles _
NumericUpDown1. GotFocus
NumericUpDown1. Select(0, _
NumericUpDown1. Value.ToString. Length)
End Sub
On Aug 25, 10:43 am, kimiraikkonen <kimiraikkone.. .@gmail.comwrot e:
On Aug 25, 4:19 pm, JoCom67 <joco...@gmail. comwrote:
>
On Aug 22, 2:41 pm, za...@construct ion-imaging.com wrote:
>
On Aug 22, 10:50 am, JoCom67 <joco...@gmail. comwrote:
>
How do you highlight (or select) the value of a numeric field after
you to this field.
>
After you what do to this field?
>
Coming from another field, once the tab key is pressed, it should
select (highlight) the numeric value so that when the user types in
the new value it will just override or overwrite the previous numeric
value of this field.
>
Pressing TAB brings you to NumericUpDown control normally, then all
you have to do is to handle GofFocus event as follows:
>
' Code Lines are splitted for a proper paste
' Select entire value
Private Sub NumericUpDown1_ GotFocus _
(ByVal sender As System.Object, _
ByVal e As System.EventArg s) Handles _
NumericUpDown1. GotFocus
NumericUpDown1. Select(0, _
NumericUpDown1. Value.ToString. Length)
End Sub
>
Hope this helps,
>
Onur Güzel
Thanks Onur, I tried it and it worked. Again Thanks!
Comment