KeyDown
using System.Windows.Forms; textbox.KeyDown += new KeyEventHandler(KeyHandler);
public void KeyHandler(object sender, KeyEvnetArgs e) { TextBox textbox=(TextBox)sender; //some code Int I = textbox.Text.Length;//this shows the number of characters before it updates with key Int y = textbox.Text.Length; //this shows the correct number of characters. }
textbox.Text.Length;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)