Greetings,
In a nutshell: I've got a panel sitting on a form that is docked to full sitting next to a vertical scrollbar that is docked left. There is a picture control sitting in the panel that may be larger than the viewable area of the panel. I'm trying to set the scrollbar up dynamically when the user resizes the form but it doesn't seem to take. For example: the user can see half of the image so the scrollbar maximum gets set to 2. When the value is 0 I set the picture top to zero so the user sees the top half and when the value is 1 I set the picture top such that the user sees the bottom half. Now the user resizes the form so only 1/4 of the image is visible. The scrollbar max is set to 4 but the scrollbar still only allows me to set the value to either 0 or 1 and not 0,1,2 or 3 as would expect. Am I missing some other property that needs to bet set or something? Any other ideas?
Thanks
Robert D
In a nutshell: I've got a panel sitting on a form that is docked to full sitting next to a vertical scrollbar that is docked left. There is a picture control sitting in the panel that may be larger than the viewable area of the panel. I'm trying to set the scrollbar up dynamically when the user resizes the form but it doesn't seem to take. For example: the user can see half of the image so the scrollbar maximum gets set to 2. When the value is 0 I set the picture top to zero so the user sees the top half and when the value is 1 I set the picture top such that the user sees the bottom half. Now the user resizes the form so only 1/4 of the image is visible. The scrollbar max is set to 4 but the scrollbar still only allows me to set the value to either 0 or 1 and not 0,1,2 or 3 as would expect. Am I missing some other property that needs to bet set or something? Any other ideas?
Thanks
Robert D
Comment