Scrolling problem

Niniel

Registered User.
Local time
Today, 03:32
Joined
Sep 28, 2006
Messages
191
Hello,

This is kind of ridiculous, but I'd like to get to the bottom of it.

I have a form with a tab control on it, which holds all my controls on several pages. The tab control takes up almost the entire form; there's only a small area of the underlying form visible around it.
For some strange reason, every time I open the form or switch from design mode to form mode, the form scrolls down a bit, on its own, so that my tabs are hidden and I have to manually scroll back up to see them.
Apart from being very annoying, this may also hide the fact from some unsuspecting future user, that there are any tabs at all.

Can somebody explain this, and, hopefully, suggest a solution?

Thank you.
 
Hi,
I have had similar issues in the past, in fact every time I created a tabbed form. :rolleyes:

I think that your tab control is positioned so that its bottom edge is off the form at the size the form opens at

solution 1: Decrease tab control size
Solution 2: Increase form size
Solution 3: Maximize the form on opening
Solution 4: Reposition the tab control

There are bound to be other ways to solve this minor issue, but I think one or more of the above will do it.

There are a number of threads on sizing forms so a quick search should give you pointers inthat direction if required.

Hope this helps you. :)
 
When you open the form in design mode it will usually open up the way it was last saved or will open up with the border covering the form. When you switch back to form view, even if you have Auto Resize and Auto Center set to Yes, these will not trigger the form to correct itself.
If the form opens up OK upon first open, then it is not something that you need to worry about because your end users will not be switching back and forth from Design mode to Form mode. That is just something that you alone will have to cope with.

Hope this helps?
 
jkl0 - But this does happen when I'm opening the form as well; that's actually my main concern. I could live with it if it only happened when I switched views, but unfortunately, that's not the case.

Keith - thanks for your suggestions; none really work though. :)
My tab control is definitely not larger than its underlying form. I can't make it any smaller either because of the way I need to group information/controls. Maximizing the form on open has no effect either.

I suspect something is centering the form, although I thought I had switched off auto-centering.
I'm saying that because after I enlarged the form and moved the tab control to the right so that it's about 2 cm away from the left edge of the form, when I open it, the tab control is right at the edge of the screen, and I don't see that 2 cm gap at all.

Very strange. :(
 
The only other solution that I can think of would be to change the border style to "None", to gain the additional space to show all of your form.
 
I won't be able to do that due to the size of some continuous subforms I have on there.
Oh well, thanks for trying to help. :)
 
jkl0 said:
The only other solution that I can think of would be to change the border style to "None", to gain the additional space to show all of your form.

jkl0, turns out you did provide a solution after all. :)

While setting the border style to None was not a good idea, setting it to Thin or Dialog works, at least upon initial opening of the form, which is all I need anyway. I chose Thin, by the way, because that preserves the Minimize and Maximize buttons.

So thank you very much; I would never have thought of experimenting with the border style myself.
 

Users who are viewing this thread

Back
Top Bottom