Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strange Horizontal Scrollbar....please help!

Status
Not open for further replies.

sony2000

Programmer
Dec 7, 2003
34
0
0
HK
Hi,

I add a horizontal Scrollbar and a textbox on a form.
When the scrollbar is scrolled, the scrollbar value will be
set to the textbox.

Then I set min and max value of the horizontal scrollbar
to 0 and 255 respectively, and then smallchange and largechange
properties are set to 1 and 10....

ok! Then I scroll it but I don't know why the max value I can
scroll is 246....but not 255.....really don't understand...
I need to use this scollbar to control a color property...
so very frustrated ..... I am really not sure whether I miss
some steps or it is a bug of .NET.....

Please help!

Raymond
 
Is your scrollbar slider (the rectangle in the scrollbar) 11 pixels wide by any chance?

Im guessing that your window is 255 wide

Dont forget that the scrollbar will work from a fixed point on its slider.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top