我正在尝试为多个文本框实现工具提示。我目前有以下
//selects all text in current textbox on textbox selection and changes BackColor to show which textbox has focus
private void txt_enter(object sender, EventArgs e)
{
((TextBox)sender).SelectAll();
((TextBox)sender).BackColor = Color.LightBlue;
}
我尝试添加
ToolTip.Show("message", ((TextBox)sender));
但这不起作用,我敢肯定答案很简单,但我是新手,请多多包涵,有什么想法吗?