Click here to Skip to main content
15,912,977 members
Home / Discussions / C#
   

C#

 
GeneralRe: Handling a car in a 2d game Pin
leppie1-May-04 9:28
leppie1-May-04 9:28 
Generalfiles needed by application Pin
mookeroo1-May-04 4:00
mookeroo1-May-04 4:00 
GeneralRe: files needed by application Pin
leppie1-May-04 5:45
leppie1-May-04 5:45 
GeneralRe: files needed by application Pin
Heath Stewart2-May-04 6:14
protectorHeath Stewart2-May-04 6:14 
GeneralRe: files needed by application Pin
mookeroo2-May-04 12:30
mookeroo2-May-04 12:30 
GeneralLock the mouse to my application Pin
Member 8094091-May-04 2:08
Member 8094091-May-04 2:08 
GeneralRe: Lock the mouse to my application Pin
Hesham Amin1-May-04 3:27
Hesham Amin1-May-04 3:27 
GeneralRe: Lock the mouse to my application Pin
osto1-May-04 13:50
osto1-May-04 13:50 
GeneralRe: Lock the mouse to my application Pin
Heath Stewart2-May-04 6:11
protectorHeath Stewart2-May-04 6:11 
GeneralWindows Messag handling in C# Pin
Vini Deep1-May-04 0:21
Vini Deep1-May-04 0:21 
GeneralRe: Windows Messag handling in C# Pin
scadaguy1-May-04 8:33
scadaguy1-May-04 8:33 
GeneralWeb Service from Java Pin
Member 1697730-Apr-04 19:35
Member 1697730-Apr-04 19:35 
GeneralRe: Web Service from Java Pin
Mazdak30-Apr-04 19:57
Mazdak30-Apr-04 19:57 
GeneralRe: Web Service from Java Pin
Heath Stewart2-May-04 6:09
protectorHeath Stewart2-May-04 6:09 
GeneralCapturing mouse movement while transparent Pin
bennyrascal30-Apr-04 19:18
bennyrascal30-Apr-04 19:18 
GeneralRe: Capturing mouse movement while transparent Pin
Heath Stewart2-May-04 6:05
protectorHeath Stewart2-May-04 6:05 
Take a look at the Control.Capture property. You could capture the mouse and receive notification messages while another control - or even another application, so make sure you use Control.PointToClient to convert the coordinates relative to your control - has the mouse over it.

I don't know anything about DSCLOCK, but I'm guessing it uses system hooks, which is another way to do it, but should be a last resort - especially if this is just necessary in your application.

That said, you can use an IMessageFilter which acts as an application hook, passing all messages that get posted to your message pump (queue) through it giving you a chance to process. See the documentation for this interface, as well as the Application.AddMessageFilter method document in the .NET Framework SDK.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Capturing mouse movement while transparent Pin
bennyrascal2-May-04 19:39
bennyrascal2-May-04 19:39 
GeneralDocking Dilemma Pin
gUrM33T30-Apr-04 15:48
gUrM33T30-Apr-04 15:48 
GeneralRe: Docking Dilemma Pin
Mazdak30-Apr-04 18:47
Mazdak30-Apr-04 18:47 
GeneralRe: Docking Dilemma Pin
gUrM33T30-Apr-04 19:46
gUrM33T30-Apr-04 19:46 
GeneralRe: Docking Dilemma Pin
Mazdak30-Apr-04 19:55
Mazdak30-Apr-04 19:55 
GeneralRe: Docking Dilemma Pin
Heath Stewart2-May-04 6:00
protectorHeath Stewart2-May-04 6:00 
GeneralRe: Docking Dilemma Pin
gUrM33T2-May-04 7:27
gUrM33T2-May-04 7:27 
GeneralRe: Docking Dilemma Pin
Heath Stewart2-May-04 7:47
protectorHeath Stewart2-May-04 7:47 
GeneralMultimedia Keys Pin
Member 87406830-Apr-04 14:31
Member 87406830-Apr-04 14:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.