Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 9th, 2007, 03:02 AM
Friend of Wrox
 
Join Date: Dec 2006
Location: , , .
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
Code:


 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
thanks

  #2 (permalink)  
Old September 10th, 2007, 03:57 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

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.

http://www.codeproject.com/csharp/globalsystemhook.asp
http://www.codeproject.com/cs/system...lobalHooks.asp

/- Sam Judson : Wrox Technical Editor -/
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:53 AM.


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