G
Guest
It looks like I can't set AutoPopDelay to be longer than 5 seconds -- which
is barely enough time to read some of my tooltips.
The documentation suggests that if I don't like that I should use
ToolTip.Show, but there is no example and I can't get it to work.
I created two functions to link to my control's MouseEnter and MouseLeave
events, and I can see them being called at the appropriate times, but the
tooltip does not appear anywhere that I can see.
private void Show_RollingWindowTip(object sender, EventArgs e)
{
Console.WriteLine("Called show");
toolTip1.Show("Explanation of this control.", this);
}
private void Hide_RollingWindowTip(object sender, EventArgs e)
{
Console.WriteLine("Called hide");
toolTip1.Hide(this);
}
In contrast, when I had simply set
toolTip1.SetToolTip(m_control, "Explanation of this control.");
the ToolTip did work, but it disappeared too quickly.
How can I correctly implement Show and Hide on a Form's control? Or else is
there a more elegant solution to keeping the ToolTip up?
is barely enough time to read some of my tooltips.
The documentation suggests that if I don't like that I should use
ToolTip.Show, but there is no example and I can't get it to work.
I created two functions to link to my control's MouseEnter and MouseLeave
events, and I can see them being called at the appropriate times, but the
tooltip does not appear anywhere that I can see.
private void Show_RollingWindowTip(object sender, EventArgs e)
{
Console.WriteLine("Called show");
toolTip1.Show("Explanation of this control.", this);
}
private void Hide_RollingWindowTip(object sender, EventArgs e)
{
Console.WriteLine("Called hide");
toolTip1.Hide(this);
}
In contrast, when I had simply set
toolTip1.SetToolTip(m_control, "Explanation of this control.");
the ToolTip did work, but it disappeared too quickly.
How can I correctly implement Show and Hide on a Form's control? Or else is
there a more elegant solution to keeping the ToolTip up?