Groups | Blog | Home
all groups > dotnet windows forms > april 2004 >

dotnet windows forms : (0-AutoScrollPosition.X) != AutoScrollMinSize.Height


cisco
4/18/2004 10:44:22 PM
I'm trying to figure out when a vertical scrollbar hits its maximum
value. Basically the user keeps on clicking 'down' and i want to know
when he can't scroll anymore.

It seems to depend on the scrollbar size as to how much it differes from
the AutoScrollMinSize.Height.

For 16px Scrollbar its 2 off so i gotta do something like this

if( (0-AutoScrollPosition.X - 2) == panel.AutoScrollPosition.Height )
....

cisco
4/18/2004 10:45:09 PM
[quoted text, click to view]

cisco
4/18/2004 10:48:45 PM
[quoted text, click to view]

I meant AutoScrollPosition.Y of course!
cisco
4/18/2004 10:49:19 PM
[quoted text, click to view]

cisco
4/18/2004 10:50:37 PM
[quoted text, click to view]

I meant AutoScrollPosition.Y of course!
AddThis Social Bookmark Button