Focus Window
I want to focus a window when I have the mouse over the window. I tried focus() after putting focusable to true, but had no success, can anybody help me?
Thank you in advance,
Artur Carvalho
I want to focus a window when I have the mouse over the window. I tried focus() after putting focusable to true, but had no success, can anybody help me?
Thank you in advance,
Artur Carvalho
Best Regards,
Artur Carvalho
IsMouseOver is a bool and not an event. If you are programmatically bringing the mouse over the window then you can do the following
If (IsMouseOver)
{
window.Focus();
}
Ill try to be more specific:
The application is activated when I use a shortcut, even when Im in another application. This shortcut triggers an event that is putting the window visible and in topmost. When Im over the window I want it to have focus so I can use the mouse wheel.
Im using mouse_enter event and it doesnt work. The intermediate solution I used was putting a dummy button so people click on it and the window gets focus. A bit weird, but it does the job.
Ill try to put the code online later.
Thanks again for your replies.
Artur Carvalho
Best Regards,
Artur Carvalho
Thx,
Artur Carvalho