Let's Look this code :
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace NumericTextBox
    public class Class1:TextBox
        public Class1()
        this.KeyPress+=new KeyPressEventHandler(KeyPressTextBox);
        protected void KeyPressTextBox(object sender,KeyPressEventArgs e)
            if (!char.IsDigit(e.KeyChar)) e.Handled = true;
I compiled to DLL file and added it to anothor Form .But when I input some numbers in Textbox , I want to delete it (use backspace) .But I can't .
e.g: I input : 123456 And Then 1234
could anyone show me how I do it ?
please give some solutions and code .
thanks . {Maybe , I have some misspells, Because My english is rather poor}
I hope Everybody will understant it .
a student in Viet Nam.