This is a migrated thread and some comments may be shown as answers.

Move between Masked sections

1 Answer 60 Views
MaskedEditBox
This is a migrated thread and some comments may be shown as answers.
Eastern
Top achievements
Rank 1
Eastern asked on 13 Nov 2010, 10:13 AM
hi,

i am using 2010 Q2 Winforms controls , i have a maskededitbox with mask "HH:mm" that presenting the time.
i want when the user entered the first 2 digit , the control goes to the Minute section automatically.
regarding this i need a method to change the caret position when the Keypress count equals two.

i tried the Selectionstart property but it seems i cant achieve this with this property.

is there another way or method to do this ?

1 Answer, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 13 Nov 2010, 01:27 PM
Hi Eastern,

I guess you could use SendKeys to do this. Have a look at my answer in this forum post which may help.

But do let me know if you need more assistance.
Richard
Tags
MaskedEditBox
Asked by
Eastern
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or