Is there any solution to this? (ToolTip)
Hi everyone, it seems I can’t find any method to hide or clear instantly the ToolStripMenuButton’s ToolTip when the button is clicked. It hides the tooltip but not fast enough. When the button is clicked the app takes the screen shot of the desktop. I don’t want the tooltip appear in the image. Is there any solution to this? Any help is appreciated.
Re: Is there any solution to this? (ToolTip)
What about disabling the topltips for the toolstrip or increasing the time needed for it to display initially.
Re: Is there any solution to this? (ToolTip)
Hi Rob, I what to show the toolTip message for the user to inform the buttn's reasion. Unfortunatly the ToolStripMenuButton's toolTip doesn't have the property for increasing the time interval.
Re: Is there any solution to this? (ToolTip)
Nevermind, I was thinking of the tootip control. I supose you may be able to dispose of the tooltip window before calling your screenshot code. Using FindWindow and FindWindowEx will be what you want to look into. Or you could use the WndProc override to trap for the window message of the tooltip window being created and cancel it out.
Re: Is there any solution to this? (ToolTip)
or perhaps a delay before the screenshot is taken
Re: Is there any solution to this? (ToolTip)
Thanks guys for the help. Rob perhaps the api would be solution but how I can Identify the tooltip window. I mean it doesn't have title, more over I don't know the class name.
Lord Orwell thanks for the reply, I think the delay is no less than 500 milliseconds. It would be very slow process, I can't afford it.
Re: Is there any solution to this? (ToolTip)
If you have MS SPy++ you can track the messages from just the toolbar and see what you can detect.
Re: Is there any solution to this? (ToolTip)
it is there that long? Try putting a doevents in the keypress event so the pending messages are processed. It is possible that the code is just too busy to hide the tooltip.