How can I tell if a component is scrolled to the bottom?

  • Thread starter Thread starter Rex the Strange
  • Start date Start date
R

Rex the Strange

That pretty much says it all. How can I tell, in my code, if my
component (which has a vertical scroll bar) is scrolled all the way to
the bottom? In this case it's a DataGridView, but I'm sure it's
probably the same with all components.

So how do I do this, please?

tia,
rts
 
rts,

The only way that I can think of doing it is getting the handle for the
scrollbar that is being hosted in the window and then using the Win32 API
functions to determine the max value of the scrollbar, and the current
value.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top