how to detect mouse presence ?

  • Thread starter Thread starter Perquiaga
  • Start date Start date
P

Perquiaga

Hi to all

I have to detect the mouse presence and disconection if occurs to give
alerts. I'm using VB .NET, if somebody can help i'll apretiate it.
 
You can use System.Windows.Forms.SystemInformation.MousePresent to check for the presence of the mouse
 
Using System.Windows.Forms.SystemInformation.MousePresent I get a true or
false saying the mouse is installed or not, but it does not detect it. If i
unplugg the mouse it keeps telling its installed.
 
That I would assume is because for the OS, the mouse is still available. I think if finds out the mouse is not there only when you reboot. I suspect this may not be the case for a USB mouse, as the OS should be able to detect unplugging of a USB device.

Rgds,
Anand M
http://www.dotnetindia.com
 
Hi Perquiaga,

I think that the mouse can only be tested if it is working with tracking the
mouse move event.

However just an idea.

Cor
 
Back
Top