bool IsShown = false;
private void tabPageModel_MouseMove(object sender, MouseEventArgs e)
{
Control ctrl = tabPageModel.GetChildAtPoint(e.Location);
if (ctrl != null)
{
if (ctrl == this.chkMember && !IsShown)
{
string tipstring = this.toolTip1.GetToolTip(this.chkMember);
this.toolTip1.Show(tipstring, this.chkMember, this.chkMember.Width / 2, this.chkMember.Height / 2);
IsShown = true;
}
}
else
{
this.toolTip1.Hide(this.chkMember);
IsShown = false;
}
}
How to show a tooltip for a disabled control in a tabPage
Started by Melissa, Apr 20 2010 09:24 AM
1 reply to this topic
#1
Posted 20 April 2010 - 09:24 AM
A similar syntax works fine when the controls are just on a form but when they're insde a tabControls tabpage the value of "ctrl" is always null. Any help would be appreaciated!
|
|
|
#2
Posted 21 April 2010 - 09:09 PM
you could set a Tooltip for each & every control.Set a tooltip for a button control & check for tooltip even when the Button is disabled.I am sure it appears


Sign In
Create Account

Back to top









