follow the code on the book we can build a program which can avoid typing wrong messages.
but the age TextBox has some problems.
if you type the ALL-RIGHT messages in each TextBox and then post some words in the age TextBox using the right click menu, it's OK.
so we get:
Code:
Name:Guyhuang
Address:Wuhan,
Hubei,
China.
Occupation:Programmer
Age:Programmer
the false is the function txtBox_TextChanged(object sender, EventArgs e).
we must check the changed text in txtAge TextBox to see if it is still a number.
but HOW.
i am a c# programmer learner in china.
hope to communicate with you.