ShowCursor doesn't work from a different thread
Hi all,
I would like to hide a mouse cursor in a .Net program.
Using both Cursor.Hide and win api ShowCursor(0) function (from
user32.dll) DOES WORK when invoked from the form thread (from the event
handler of the form); and both functions DOES NOT work when invoked
from a different thread (using System.Timer or from threadpool).
I notice also that the cursor is hidden only above the form or control
from.
So I guess this is because cursor hiding is somehow connected to a form
or a control.
Is there a way to hide a cursor (above a form) not from the thread
which "owns" a form?
Thanx.
.
Relevant Pages
- Re: speech recognition & e-mail messages probs !!!
... To answer your question about mouse control and cursor control with ... say that is because I correspond regularly with someone who uses DNS ... cursor with voice control. ... speech recognition solutions and support. ... (microsoft.public.windows.vista.general) - Re: Positioning Cursor
... i do mean do set the position of the cursor. ... On a Form I have a Control, positioned let's say at 4 cm from the ... 7th or 8th entry in the list although no entry is ... ' If LeaveFocus is True, the focus will be returned to ... (microsoft.public.access.modulesdaovba) - Re: Documentation, anyone?
... password field and a "submit" button, and if the user hits the key ... Nope..actually the "enter" event is when the cursor moves into the ... control/field. ... (microsoft.public.access.modulesdaovba) - Re: Raw Input from Mouse-like HID device
... DIEDFL_INCLUDEALIASES, I get 3 mice and 3 keyboards, whether my USB HID ... work fine when controlling the cursor normally. ... However, I want the touchscreen to control the cursor, but the control ... I have even tried a nasty kludge using raw input, ... (microsoft.public.development.device.drivers) - Re: Raw Input from Mouse-like HID device
... > work fine when controlling the cursor normally. ... > However, I want the touchscreen to control the cursor, but the control ... > I have even tried a nasty kludge using raw input, ... (microsoft.public.development.device.drivers) |
|