C
C#2y ago
Grin

✅ 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
Anchy
Anchy2y ago
what framework
Grin
GrinOP2y ago
tbh I don't know, let me see if I can find out. net 6.0
Anchy
Anchy2y ago
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
Grin
GrinOP2y ago
Is that something I'll need to write? Was wondering if there was a event similar to properties
Anchy
Anchy2y ago
yes, im unsure of how to access it in winforms however its easier to access child components in wpf
Grin
GrinOP2y ago
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.
Want results from more Discord servers?
Add your server