Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 9th, 2007, 03:02 AM
Friend of Wrox
Join Date: Dec 2006
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Default get outside form access

hi expert
i wanna to set the mouseposition to Form Caption even the mouse is in outside the form
i ovveride wndproc method and check for this Winodws Message (WM_MOUSEMOVE) but when the mouse is hover the Form my codes work successfully
when i move the mouse outside the form my code doesn't work

my code is

in Form1 I wrote

 const int WM_MOUSEMOVE = 0x0200;
        protected override void WndProc(ref Message m)
            if (m.Msg == WM_MOUSEMOVE)
                this.Text = MousePosition.X.ToString() + "," + MousePosition.Y.ToString();
            base.WndProc(ref m);

plz help me

Old September 10th, 2007, 03:57 AM
samjudson's Avatar
Friend of Wrox
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts

Global System Hooks are much more difficult in C# than local hooks.

Check out the following articles to see if they give you any help - but its a bit too big a topic to really be able to help you here.


/- Sam Judson : Wrox Technical Editor -/

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Report from Access PivotTable Form Odeh Naber Access 2 July 24th, 2007 09:33 AM
Access form to web form clott BOOK: Access 2003 VBA Programmer's Reference 0 February 13th, 2006 06:44 PM
Resize Access main window from Access form hasseh Access VBA 2 October 24th, 2004 05:15 PM
A Access Form issue goels Access VBA 6 October 7th, 2004 06:58 AM
Access Form jemacc Access 3 December 22nd, 2003 03:34 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.