19-12-2010, 17:16
|
|
|
|
חבר מתאריך: 30.08.09
הודעות: 2,880
|
|
use the TextChanged event
קוד:
private void textBox1_TextChanged(object sender, EventArgs e)
{
string str = "";
foreach (char l in textBox1.Text)
if (l >= 'A' && l <= 'Z' || l >= 'a' && l <= 'z')
str += l;
((TextBox)sender).Text = str;
}
_____________________________________
ציטוט:
במקור נכתב על ידי Michael Shermer
Smart people are very good at rationalizing things they came to believe for non-smart reasons.
|
|