G
Guest
I have created a form and placed a tab control on it. To size it, I have
placed this code in the 'Form_Open' sub.
--------------------
Private Sub Form_Open(Cancel As Integer)
myTab.Height = WindowHeight - myTab.Top
myTab.Width = WindowWidth
End Sub
--------------------
In design mode I try to place it at 'Top = 1 cm', but it doesn't work.
Whatever value I type into the 'Top' property, it chages back to the old
value as soon as I press the 'Enter' or 'Tab' button. Why is that?
Another problem is that changing the top property using VBA does not work
either. This problem seem to occur only when I have scrollbars disabled. When
they are enabled the tab control is placed at an offset to the top of the
form, but I need to scroll up to see it.
Can someone make sense out of this?
placed this code in the 'Form_Open' sub.
--------------------
Private Sub Form_Open(Cancel As Integer)
myTab.Height = WindowHeight - myTab.Top
myTab.Width = WindowWidth
End Sub
--------------------
In design mode I try to place it at 'Top = 1 cm', but it doesn't work.
Whatever value I type into the 'Top' property, it chages back to the old
value as soon as I press the 'Enter' or 'Tab' button. Why is that?
Another problem is that changing the top property using VBA does not work
either. This problem seem to occur only when I have scrollbars disabled. When
they are enabled the tab control is placed at an offset to the top of the
form, but I need to scroll up to see it.
Can someone make sense out of this?