hi, how is all ??
i have just got a problem, i have a form with about 30 text boxes.
i have made these event hundlers to handle got focus and lose focus events
and applied it for "name" textbox
is there a way to apply the same event hundler to all form textboxes without making event handler for every one of my 30 textboxes ??
thx in advance.
i have just got a problem, i have a form with about 30 text boxes.
i have made these event hundlers to handle got focus and lose focus events
Code:
private void gf(object sender, EventArgs e)
{
name.BackColor=System.Drawing.SystemColors.Info;
}
private void lf(object sender, EventArgs e)
{
name.BackColor = System.Drawing.SystemColors.Window;
}
is there a way to apply the same event hundler to all form textboxes without making event handler for every one of my 30 textboxes ??
thx in advance.
Comment