Re: [Mono-dev] how do i get mouse position on the screen?
Thanks for the help. I will try it asap. Ivan N. Zlatev wrote: > > On Tue, Feb 24, 2009 at 6:46 PM, jkarpago 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 > ___ > Mono-devel-list mailing list > Mono-devel-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > > -- View this message in context: http://www.nabble.com/how-do-i-get-mouse-position-on-the-screen--tp22187973p22369065.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] how do i get mouse position on the screen?
On Tue, Feb 24, 2009 at 6:46 PM, jkarpago 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 ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] how do i get mouse position on the screen?
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? -- View this message in context: http://www.nabble.com/how-do-i-get-mouse-position-on-the-screen--tp22187973p22187973.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list