我有一个登录表单.表单有2个文本框和3个按钮.一个按钮说"学生".
我想要做的是在表单打开时在此按钮上显示工具提示.我不想要按下按钮并将其悬停在它上面以便显示它.我希望表单加载,显示工具提示,然后工具提示应在5秒后消失.这是我到目前为止所尝试的:
private void Form1_Load(object sender, EventArgs e)
{
toolTip.IsBalloon = true;
toolTip.ToolTipIcon = ToolTipIcon.Info;
toolTip.ShowAlways = true;
toolTip.UseFading = true;
toolTip.UseAnimation = true;
toolTip.ToolTipTitle = "Student Mode";
toolTip.Show("You don't have to log in if you are a student. Just click here to go to the questions.", btnStudent);
}
Run Code Online (Sandbox Code Playgroud)