✅ How can I create a scroll event? I can't find any "scroll" events
I'm trying to find an event to check if the user scrolls through a listbox_Names. I want to set the other list boxes to the same value so everything is kind of symetrical.
6 Replies
what framework
tbh I don't know, let me see if I can find out.
net 6.0
i meant ui framework, but it looks like you already tagged as winforms
you need to access the underlying scrollviewer and subscribe to the value changed event
Is that something I'll need to write? Was wondering if there was a event similar to properties
yes, im unsure of how to access it in winforms however
its easier to access child components in wpf
I haven't heard of wpf yet, but ty for the input.
Gonna try to learn about accessing that underlying scrollviewer for now
I ended up just using .TopIndex = SelectedIndex that way I would keep the boxes symetrical for the most part.