469,627 Members | 953 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,627 developers. It's quick & easy.

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

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

Oct 6 '06 #1
1 1095
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Rex the Strange" <ro********@widgetinc.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
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

Oct 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Mel | last post: by
4 posts views Thread by Sergio Millich | last post: by
2 posts views Thread by M D | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.