problems with a Scrollbar in a Frame in a Userform

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top