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

Question on MaskedTextbox control

Thread ID:

Created:

Platform:

Replies:

73462 May 7,2008 07:30 PM UTC Windows Forms 0
loading
Tags: FAQ
Michal Moncur
Asked On May 7, 2008 07:30 PM UTC

George Shepherd's Windows Forms FAQ 27.1 works fine for TextBox controls. I tried the same with a MaskedTextBox control. [C#] public class MyTextBox : MaskedTextBox { protected override void OnKeyPress(KeyPressEventArgs e) { if(e.KeyChar == (char) 13) e.Handled = true; else base.OnKeyPress (e); } } The beep is elimiated however the Mask Property behaves erratically. Does anyone know of an explanation for this?


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

;