![]() check the current view's UserInteractionMode to see if it's UserInteractionMode.Mouse or UserInteractionMode.Touch), however I'm not sure if or how I can do the same in Windows Forms. There is some guidance on how to do this in a UWP project at (v=vs.85).aspx (i.e. I'm interested in make some optimizations in my Windows Forms application based on whether a user is in "Tablet Mode" (or not) using the new Windows 10 Continuum feature. If (tabletMode = mode is mode is disabled") I have a MIMO tablet that I use as a secondary screen and touch control, and having to recalibrate it everytime the PC. I dont know if its intentional, but my goal would be to find a way to have the PC remember the settings. Var tabletMode = (int)Registry.GetValue("HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ImmersiveShell", "TabletMode", 0) Hello, Ive having an issue with the Tablet PC Settings on a Windows 10 PC resetting everytime the PC is shut down. Private void ManagementEventWatcher_EventArrived(object sender, EventArrivedEventArgs e) ManagementEventWatcher.EventArrived = this.ManagementEventWatcher_EventArrived Var managementEventWatcher = new ManagementEventWatcher(wqlEventQuery) Var wqlEventQuery = new * FROM RegistryValueChangeEvent WHERE Hive='HKEY_USERS' AND KeyPath='\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ImmersiveShell' AND ValueName='TabletMode'", )) If (currentUser != null
0 Comments
Leave a Reply. |