January 2012
Intermediate to advanced
396 pages
8h 16m
English
Follow the given step:
Form1.cs:private void textBox1_Leave(object sender, EventArgs e)
{
string[] toks = textBox1.Text.Split(new char[]{ '\r', '\n' },
StringSplitOptions.RemoveEmptyEntries);
foreach (string tok in toks)
if(!tweeterUserNames.Contains(tok))
tweeterUserNames.Add(tok);
List<string> copyNames = tweeterUserNames.ToList();
foreach (string tok in copyNames)
{
if (!toks.Contains(tok))//The name is deleted
{
tweeterUserNames.Remove(tok);
}
}
}We want to monitor the changes being made in the list of Twitter user IDs in the first tab. So, whenever the control leaves this textbox, we want to see whether there ...
Read now
Unlock full access