in that textbox1 i want to restrict the user dont allow to type any thing on the textbox1.
if the user types in the textbox1 do not allow anything numbers,characters and special characters and symbols etc.
this is my question.
send the code.
REGARDS,
RAO

Satyapriya NayakRank #47 · 31.5K reputationPosted Jul 11, 2012, 1:56 AM EDT
private void textBox1_TextChanged(object sender, EventArgs e)
{
if (textBox1.Text.Length > 0)
{
MessageBox.Show("Do not allow anything numbers,characters and special characters and symbols etc.");
}
textBox1.Text = "";
}
Thanks
Satyapriya NayakRank #47 · 31.5K reputationPosted Jul 11, 2012, 4:07 AM EDT
Thanks
sudharsan s110 reputationPosted Jul 11, 2012, 4:21 AM EDT
refid.ReadOnly=true;
refid is that textbox id, change into your textbox id.
Satyapriya NayakRank #47 · 31.5K reputationPosted Jul 11, 2012, 4:43 AM EDT
I have already gave the answer that you have posted in the below link
http://www.c-sharpcorner.com/Forums/Thread/178850/validation-in-textbox.aspx
This user is not accepting anybody's answer and creating new thread of the same question rather discussing with the same thread.
Thanks
sudharsan s110 reputationPosted Jul 11, 2012, 6:40 AM EDT
oh. Sorry, i didnt look your answer. so only i posted that again.
Satyapriya NayakRank #47 · 31.5K reputationPosted Dec 5, 2012, 2:25 AM EST