If you call the SetCapture API prior to your mouse leaving the form, any
subsequent mouse input will be directed to the form, not to the application
you click. By testing the screen coordinates of the rodent in relation to
the form you can determine if the click occurred outside the form's client
area. Be sure to call ReleaseCapture when you're done to restore normal
mouse action.
--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"Pete Mann" <pe******@blueyonder.co.uk> wrote in message
news:Ol********************@fe2.news.blueyonder.co .uk...
: Hi
: Could anyone tell me if there is a command which will recongnise a simple
: mouse click anywhere on the screen, I can do it ok for a command box etc
etc
: but would like to be able to simply click a mouse button from anywhere on
: the screen.
: Thanking You In Advanced
: Pete
:
: