How to swipe a listbox/listView box in a WinForm app?

Stefano Mora 1 Reputation point
2023-03-09T11:50:13.0266667+00:00

Hi all,

I'm writing a C# WinForms application.

In this application I put a listView modified to show the items in horizontal way by DrawItem() overload.

Since the application will run on a device with touchscreen I need to implement the swipe action on the list: to achieve that I overloaded the MouseUp/Down/Move functions to calculate the mouse movement.

But now I don't know how to notify the listView the scroll movement.

Any idea?

Thanks!

Developer technologies .NET Other
Developer technologies C#
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.