This question is locked. New answers and comments are not allowed.
I am trying to achieve a page up/down functionality for a Point of sale.
Lets say the case where i have a listbox
Achored on all sides, and autoscroll enabled = true
with two bottons Page up / Page down
If I press page down button I want the list box to scroll down by the amount of its height.
How do I do this ?
I tried using for page down
radListBox1.AutoScrollOffset = new Point(0, (-1*radListBox1.AutoScrollOffset.Y)+radListBox1.Height);
I use a positive value for y point because it gets converted into negative and therefore I set the Y offset to a positive by multiplying it by -1.
With very little success.
Thank you in advance
Lets say the case where i have a listbox
Achored on all sides, and autoscroll enabled = true
with two bottons Page up / Page down
If I press page down button I want the list box to scroll down by the amount of its height.
How do I do this ?
I tried using for page down
radListBox1.AutoScrollOffset = new Point(0, (-1*radListBox1.AutoScrollOffset.Y)+radListBox1.Height);
I use a positive value for y point because it gets converted into negative and therefore I set the Y offset to a positive by multiplying it by -1.
With very little success.
Thank you in advance