public CustomTextBox() { InitializeComponent(); this.BeepOnError = true; this.AsciiOnly = true; this.MaskInputRejected += new MaskInputRejectedEventHandler(CustomTextBox_MaskInputRejected); } // mark this event as virtual