Freezing Mouse Cursors

In some classroom scenarios, the teacher might want to freeze students’ mouse pointers (for example, to obtain their attention).

To enable freeze functionality, set the DisableMovement property of the MultipointMouseDevice object to true as shown in the following code. To freeze all mouse pointers, iterate through the list of devices, freezing each one.

private void FreezeMice()
  foreach(var deviceInfo in
    deviceInfo.DeviceVisual.DisableMovement = true;

For a complete code example, see Microsoft.Multipoint.Sdk.Samples.Quiz.Model.PlayerManager.ToggleMiceFrozen.

© 2014 Microsoft