J
jeremy.bensoussan
Hi,
I created a userform with a frame that displays labels programmatically
created. The number of labels is dynamic, depending for example on the
options the user selects.
Above a certain number of labels, my frame is too small and I opted to
use a scrollbar.
Everything works ok, but I have a little problem that annoys me: when I
click on the frame, the scrollbar goes down (the variable scrolltop of
the frames changes to 26.5) with no appearent reason.
I also inserted a line setting scrolltop to 0 (which is supposed to be
its value since I never modified it in the code) and still, after the
first time I click on the frame, the scrollbar goes down.
I sincerely have no clue why that happens. I tried to modify the
tabstop and tabindex parameters with no success.
I would love to understand why that happens!
Thanks for your help.
I created a userform with a frame that displays labels programmatically
created. The number of labels is dynamic, depending for example on the
options the user selects.
Above a certain number of labels, my frame is too small and I opted to
use a scrollbar.
Everything works ok, but I have a little problem that annoys me: when I
click on the frame, the scrollbar goes down (the variable scrolltop of
the frames changes to 26.5) with no appearent reason.
I also inserted a line setting scrolltop to 0 (which is supposed to be
its value since I never modified it in the code) and still, after the
first time I click on the frame, the scrollbar goes down.
I sincerely have no clue why that happens. I tried to modify the
tabstop and tabindex parameters with no success.
I would love to understand why that happens!
Thanks for your help.