Articles in this section
Category / Section

How to set mask for the text in WInForms ButtonEdit?

1 min read

To set the mask in the WinForms ButtonEdit, we can replace the textbox with MaskedEditBox. In the default textbox, it does not have the mask support, so you can use the MaskedEditTextBox which is a custom TextBox allows to set the mask. In this article we have explained about how to set the MaskedEditTextBox in the ButtonEdit control. Please find the code for the same from following:

 

C#

 
this.buttonEdit1.TextBox = this.maskedEditBox1;
 

 

VB:

 
Me.buttonEdit1.TextBox = Me.maskedEditBox1;
 

 

 

Screenshot:

ButtonEdit control shows with Mask fields

 Fig 1: Shows the ButtonEdit control with the Mask fields.

 

Sample:

C#: How to set mask for the text in ButtonEdit C#?

VB: How to set mask for the text in ButtonEdit VB?

 

 

 

 

Conclusion

I hope you enjoyed learning about how to set mask for the text in WInForms ButtonEdit.

You can refer to our WinForms ButtonEdit feature tour page to learn about its other groundbreaking feature representations. You can also explore our WinForms ButtonEdit documentation to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied