the below coderestricts the user from entering text values but also restricts to make use of backspace button!
help me
give a solution for this espicially using ASCII values!

//wen you select the text box and get into the properties and select Events for textbox and double click on key press event.
private key_press()
{
if(!char.IsLetter(e.Keychar))
{
e.enabled=true;
}
}

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.