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

Stefano Mora 1 Reputation point

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?


Microsoft Technologies based on the .NET software framework.
3,346 questions
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,205 questions
{count} votes