C
C#14mo 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
Anchy14mo ago
what framework
Grin
Grin14mo ago
tbh I don't know, let me see if I can find out. net 6.0
Anchy
Anchy14mo 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
Grin14mo ago
Is that something I'll need to write? Was wondering if there was a event similar to properties
Anchy
Anchy14mo ago
yes, im unsure of how to access it in winforms however its easier to access child components in wpf
Grin
Grin14mo 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
More Posts