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!

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,649 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,648 questions
{count} votes