Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
Click in MaskedEdit
posted

Hi,

when I click into a MaskedEdit with a UserSpecifiedMask e.g. like "CCCCCC" the cursor will appear at exact the point where I clicked as long as it was somewhere in the range of the specified mask. I want to have the cursor always at the first left position. I tried to set the paddingChar to "" but that is not possible. Is there another way to suppress the padding?

 

Thanks in advance,

Anja 

Parents
  • 469350
    Offline posted

     Hi Anja,

        Padding is not related to the cursor position as far as I see.

        What you need to do is set the SelectionStart property on the control. This controls the position of the cursor. I would probably try using the Enter event.  

Reply Children