Programmatically Scroll
-
I have a Pegasus ImageXview control in a panel. I would like to scroll up/down using the mousewheel. I can receive the wheel events, however I can't seem to move the scroll bar. From my reading, I thought AutoScrollPosition was supposed to be set, but I have had no sucess. Even tried hard coding it. How does one scroll programmatically? How do you detect if you are at the top / bottom of the form?
-
I have a Pegasus ImageXview control in a panel. I would like to scroll up/down using the mousewheel. I can receive the wheel events, however I can't seem to move the scroll bar. From my reading, I thought AutoScrollPosition was supposed to be set, but I have had no sucess. Even tried hard coding it. How does one scroll programmatically? How do you detect if you are at the top / bottom of the form?
first: a panel has a property 'autoscroll' set this to true maybe it will solve you're problem second: there are 2 controls in vb.net you should look at: hscrollbar and vscrollbar maybe they can be of help if not three: you can try to propramme it by set the panels top bye -= 5 and height bye +=5 or something everytime there is a scroll event but this is far from the best way (and probably has al sorts of problems with it that I can't come up with right now) so my advice try 1 then 2 and if you have ecausted every option go to 3 (only when absalutly no other way)
-
first: a panel has a property 'autoscroll' set this to true maybe it will solve you're problem second: there are 2 controls in vb.net you should look at: hscrollbar and vscrollbar maybe they can be of help if not three: you can try to propramme it by set the panels top bye -= 5 and height bye +=5 or something everytime there is a scroll event but this is far from the best way (and probably has al sorts of problems with it that I can't come up with right now) so my advice try 1 then 2 and if you have ecausted every option go to 3 (only when absalutly no other way)
-
The problem was Pegasus - they have the AutoScrollPosition property - but it isn't used. They use their own property called ScrollPosition, setting that works. Go figure?
yeah that happens I'm currently working with datawindows control and the calender control of codejock and I ran into several of these 'wtf' moments ;P