private void textBox1_Enter(object sender, EventArgs e)
{
((TextBox)sender).BackColor = Color.LightCoral;
}
private void textBox1_Leave(object sender, EventArgs e)
{
((TextBox)sender).BackColor = Color.White;
}
动态改变TextBox的背景色
最新推荐文章于 2022-11-21 10:47:09 发布