Hi,
In a form, if the properties "NavigationButtons" is false and "ScrollBars" is Horizontal Only or Both, we see a horizontal banner under the form after using the Maximize button and decreasing the size of the window until the bar horizontal scroll button appears.
To reproduce the issue:
This gray band is also permanently displayed on other forms that do not have navigation buttons.
If you don't make the form's horizontal scrollbar appear when you change its size, this problem does not occur.
If the form navigation buttons are visible, this problem does not occur.
This problem is still present on the latest version 2309 and existed before.
Property
banner under the form
form
Here is the workaround to the problem in VBA:
In the form resize event, I remove the scrollBars (ScrollBars=0) and then display them again (ScrollBars=3).
In a form, if the properties "NavigationButtons" is false and "ScrollBars" is Horizontal Only or Both, we see a horizontal banner under the form after using the Maximize button and decreasing the size of the window until the bar horizontal scroll button appears.
To reproduce the issue:
- Create a new form by changing the properties: 'NavigationButtons' to false - 'ScrollBars' to Horizontal Only or both.
- Open the form in Form view.
- Press the Maximize button on the form.
- Using the mouse, reduce the size of the window on the screen from the left or right edge to display the horizontal scroll bar of the form.
- Press the form's Maximize button again to display the form as full as possible on the screen or make the horizontal scroll bar disappear again by increasing its width using the mouse.
This gray band is also permanently displayed on other forms that do not have navigation buttons.
If you don't make the form's horizontal scrollbar appear when you change its size, this problem does not occur.
If the form navigation buttons are visible, this problem does not occur.
This problem is still present on the latest version 2309 and existed before.
Property
banner under the form
form
Here is the workaround to the problem in VBA:
Code:
Private Sub Form_Resize()
‘Remove scrollbars from form
me.ScrollBars = 0
'Replaces the form scrollbars
Me.ScrollBars = 3
End Sub
In the form resize event, I remove the scrollBars (ScrollBars=0) and then display them again (ScrollBars=3).
Last edited: