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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

MaskedTextBox and Select/SelectAll

Thread ID:

Created:

Updated:

Platform:

Replies:

52507 Nov 29,2006 11:40 AM Nov 30,2006 02:28 AM Windows Forms 1
loading
Tags: Tools
Josh Collins
Asked On November 29, 2006 11:40 AM

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.

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


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.



CONFIRMATION

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.

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

;