I registered Hotkey: Ctrl + Space. Hotkey message is sent to:
private void Hotkey_press()
{
... // I want to show tooltip "Hello" at current mouse location.
}
Is there any way to show this tooltip even the mouse doesnt point to any control and it is outside my Window.Form1?
Edit: That ToolTip can show even the form lost focus or hide
You want something like
Where the
MousePositioncan be obtained from theMouseEventArgsviaor using
also, you may want to set a longer duration for which the
ToolTipis displayed, well just use the overloads available for theShowmethod,tt.Show("String", win, mousePosition, 5000);will display the tool tip for 5 seconds.I hope this helps.