[Mono-dev] how do i get mouse position on the screen?

Ivan N. Zlatev contact at i-nz.net
Wed Mar 4 17:08:56 EST 2009


On Tue, Feb 24, 2009 at 6:46 PM, jkarpago <jkarpago at gmail.com> wrote:
>
> Hi:
>
> I want to know where is the mouse in the screen, not the app window but the
> whole screen.
> I have tried width cursor, mouse, pointer and did not find a solution.
> how can I do it?

Hi,

WinForms or GTK#? In WinForms try the static property
Control.MousePosition and for GTK# the
someWidgetInstance.RootWindow.GetPointer (...) method.

--
Kind Regards,
Ivan N. Zlatev


More information about the Mono-devel-list mailing list