Move between Masked sections

2 posts, 1 answers
  1. Eastern
    Eastern avatar
    43 posts
    Member since:
    Sep 2010

    Posted 13 Nov 2010 Link to this post


    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 ?
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 13 Nov 2010 Link to this post

    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.
Back to Top