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
close icon

MaskedTextBox and Select/SelectAll

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 4.1.0.58.

Thanks.

1 Reply

AR Anupama Roy Syncfusion Team 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)
{
this.maskedEditBox1.SelectAll();
}

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.

http://www.syncfusion.com/support/features/tools/Default.aspx?ToDo=view&questId=1382

Thanks for choosing Syncfusion products.

Regards,

Anu.



Loader.
Live Chat Icon For mobile
Up arrow icon