You can use the TCPMouseHook within your project to monitor Mouse activity, Disable the Mouse or to obtain the state of which Buttons are being pressed in real time.
Supports Windows 95/98/ME/NT/2000/XP.
Simple component with one Event passing mouse position and button states.
Truly Global, System Wide Mouse Hook on all running Applications.
Disable Mouse and Block Mouse events from being processed by windows.
Event Returns X and Y position of Mouse Cursor.
Event Returns State of Buttons and Scroll Wheel.
Event Returns Hit Point Codes of the current Mouse Cursor.
Indication if Mouse Cursor is within certain areas of a Window.