How to limit or prevent characters in a TextBox in C#? Or How to create a NumberTextBox or DigitBox object?

Let say you want to have a TextBox in which you only want to allow integers (0-9) or maybe you only want to allow strings, A-Za-z. Well, lets play around with this for a second and see what we can do. To get started do this: Create a new WPF Application project. In the designer, … Continue reading How to limit or prevent characters in a TextBox in C#? Or How to create a NumberTextBox or DigitBox object?