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
Select text when tabbing in MaskedEdit
posted

 Hi there,

I am using several controls in a dialog. When I am tabbing through UltraTextEditors the whole text in the control is selected when I tab into it. When I use UltraMaskedEdit-Controls nothing is selected when I tab into the control. Is there a property I can set to change that behaviour?

In addition: The UltraMasedEdit is set to UseSpecifiedMask and the InputMask is nnnn

Thanks in advance,

Anja 

Parents
  • 469350
    Verified Answer
    Offline posted

     Hi Anja,

        It looks like the control remember what was selected the last time it lost focus. There's no property for this, but it's pretty easy to handle inside the Enter event: 

       
            private void ultraMaskedEdit1_Enter(object sender, EventArgs e)
            {
                UltraMaskedEdit ultraMaskedEdit = sender as UltraMaskedEdit;
                ultraMaskedEdit.SelectAll();
            }   

Reply Children