If you have a disabled button on winform, how do you tooltip on mouse-over to notify the user Can the show button be disabled?
Sam Merkel, thanks for your reply, very good to use the tag to know What thoughts are you leaving? However, according to Bobby Shapha's reply you still need the flag of Islam. If you have a mouse in the wrong place, if the tooltip comes under it, then it can fire another mouse application (even if you have not moved the mouse physically). This can be the cause of some unwanted animation, because the tooltip constantly disappears and looks again.
Here's my code:
private bool toolTipShown = false; Private Waste Time Works_missmov (Object Sender, MouseInventErgus E) {main parent = sender in the form of control; If (parent == zero) {return; } Var ctrl = parent.GetChildAtPoint (e.Location); If (ctrl! = Null) {if (ctrl.Visible & toolTip1.Tag == zero) {if (! ToolTipShown) {var tipstring = toolTip1.GetToolTip (ctrl); ToolTip1.Show (tipstring.Trim (), ctrl, ctrl.Width / 2, ctrl.Highight / 2); ToolTip1.Tag = ctrl; ToolTipShown = True; }}} And {ctrl = toolTip1.Tag as the control; If (ctrl! = Null) {toolTip1.Hide (ctrl); ToolTip1.Tag = Faucet; ToolTipShown = false; }}}
Comments
Post a Comment