Hi,
I have the requirement to input a MAC address using masked input and the mask should be persisted in the database. Can this be done using UltraMaskedEdit
Thanks a lot
Kind regards
Patrick
Hello Patrik, You can use the UltraMaskedEdit to reach that requirement. You need to add a mask to UltraMaskedEdit, see the code sample:this.ultraMaskedEdit1.EditAs = Infragistics.Win.UltraWinMaskedEdit.EditAsType.UseSpecifiedMask; this.ultraMaskedEdit1.InputMask = "AA-AA-AA-AA-AA-AA";this.ultraMaskedEdit1.MaxValue = 17;And you can retrieve the masked text after the user type it with the Value of the UltraMaskedEdit. The value will contain the text and the mask also.I hope this helps.Best regards,DimiDeveloper Support EngineerInfragistics Inc.
Great this works so far.
Dimitrina, thank you so much. Still a little question is remaining. I use the ultraMaskedEdit Control in a usercontrol, that exports the editor itself. So in my the IDE i drag my usercontrol and place it on the form. Then I can change settings i.e. EditAs or Text directly though the IDE. But after compiling the project, these settings are lost. Why? I do the same with UltraTextEditor-Control and here it works.
Kind regardsPatrick