WinForms TextBox to accept numbers in a range
Posted by: The Code Project Latest Articles,
on 10 Jan 2012 |
View original | Bookmarked: 0 time(s)
I will use a label with font color red just below the text box and will adopt the following code private void textBox1_TextChanged(object sender, EventArgs e) { int min=0,max=256; try { label1.Visible = false; ......