Posted 20 April 2022, 6:21 pm EST
Hi
I would like to create a masked text box with C! for WinForms for entering e-mail. Should I use C1TextBox and set some properties or something else? I cannot find the answer… Please, help.
Best regards,
Amma
Forums Home / ComponentOne / WinForms Edition
Posted by: a.koneva on 20 April 2022, 6:21 pm EST
Posted 20 April 2022, 6:21 pm EST
Hi
I would like to create a masked text box with C! for WinForms for entering e-mail. Should I use C1TextBox and set some properties or something else? I cannot find the answer… Please, help.
Best regards,
Amma
Posted 20 April 2022, 6:23 pm EST
Sorry, my name is Anna.
Posted 21 April 2022, 4:45 am EST
Hi Anna,
Using a Mask in a C1TextBox is only logical when the input value is of a fixed length and format, like a Date or a Mobile number. But in the case of an Email, the format and length can be different in some cases. Therefore, if you want to use the C1TextBox for Email input, you can use the PreValidation of the C1TextBox to validate the Email input according to the different email formats. Please refer to the attached sample showing a simple implementation of the same
Kind Regards,
Kartik