I need to be able to determine when the user has scrolled through 60% of the content in a panel and I'm not having much luck finding a solution for this.
Thanks in advance for any ideas.
On Panel's Scroll Event, you can do
double scrollPercentage = (double)
scrollbar.VerticalScroll.Value / scrollBar.VerticalScroll.Maximum;
if (scrollPercentage > 0.6)
{
...
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With