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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

MaskedTextBox and Select/SelectAll

Thread ID:





52507 Nov 29,2006 04:40 PM UTC Nov 30,2006 07:28 AM UTC WinForms 1
Tags: Tools
Josh Collins
Asked On November 29, 2006 04:40 PM UTC

The issue I have seems similar to the issue described at: http://www.syncfusion.com/support/Forums/message.aspx?MessageID=18975

While using a MaskedTextBox to captures dates (Mask = 99/99/9999) I am unable successfully call SelectAll or the other Select methods on the textbox.

I am using


Anupama Roy [Syncfusion]
Replied On November 30, 2006 07:28 AM UTC

Hi Josh,

This issue with Enter event seems to exist now also.As a workaround,you can create a delegate for GotFocus event and call the SelectAll() method within that.

this.maskedEditBox1.GotFocus += new EventHandler(_GotFocus);

private void _GotFocus(object sender, EventArgs args)

I have logged a feature request for a new property that would automatically select the text.As we have overridden the Enter event to place cursor at different positions
[PositionAt property],we need to check out how behavior should go well with both the cases.
You can track the progress of implementation through the below given link.


Thanks for choosing Syncfusion products.




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

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