Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.

Answered How to tell if mouse changed?

  • Friday, December 16, 2005 7:22 PM
     
     

    I have a mouse and a tablet.  Is there a way to tell which is being used at any given time or adjusting the factor for the tablet to a value different than the mouse?

     

    TIA,

     

    Devin

All Replies

  • Friday, December 16, 2005 7:48 PM
     
     Answered

    Well, the only thing close that I know of within the FCL is this:

    Microsoft.VisualBasic.Devices.Computer computer = new Microsoft.VisualBasic.Devices.Computer();

    Microsoft.VisualBasic.Devices.Mouse mouse = computer.Mouse;

    But that doesn't tell you "which" mouse is connected.

    However, your tablet may have certain Mouse property values set that are different than those of a typical mouse - you could compare them to determine "which" mouse is currently being used.