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 Dimitrina,
sure I have some settings set directoly in the control from UserControl. Settings like Name, Size, Location but none of those settings which I am targeting.
I alos checked the usercontrols InitializeComponents method. None of of the targeted properties is set here.
I worked around for the moment with setting these properties in the form where the control is hosted.
Do you have any suggestions?
Kind regardsPatrick
Hello Patrik, I think what may happened in your case. You put the ultraMaskedEdit in a UserControl, and the user control has Initialize section, you may define some default settings form the IDE for the ultraMaskedEdit that may overrides the settings that you set in your UserControl. Remove all non default settings form the UserControl init section.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.
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.