Search code examples
c#windows-8touch.net-4.5

Windows Form Application Touch Gesture


We are developing a C#, .NET 4.5 application. On Windows 8.1, whenever a user does touch scrolling on one of the panels in the form, the entire screen application moves just a bit, even if maximized.

Found questions asked where people having similar issues fixed it in WPF by turning off the boundary feedback event, and people who fixed it in Windows 7 by just turning off boundary feedback for all of Windows. However, I can't find anything for disabling this in a standard C# windows form application, and the boundary feedback setting option doesn't seem to exist in the Windows 8 settings.

Any suggestions?

Thanks


Solution

  • I haven't tried this, but I believe you can override the WM_GESTURE message (specifically GID_PAN) and not send it on.

    The default code is likely very similar to the example code in UpdatePanningFeedback .