We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set mask for the text in ButtonEdit?

Platform: WinForms |
Control: ButtonEdit |
Published Date: September 25, 2018 |
Last Revised Date: May 24, 2019

To set the mask in the 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?

 

 

 

 

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile