BUG: Grid Custom Control: Scroll Bars Displayed Unnecessarily (80967)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
- Microsoft Professional Toolkit for Microsoft Visual Basic programming system for Windows
This article was previously published under Q80967 SYMPTOMS
Under the following conditions, the Grid custom control incorrectly
displays horizontal and vertical scroll bars when all the columns and
rows fit in the control (which eliminates the need for scroll bars):
- The ScrollBars property is set to 3 (Both).
- The distance between the right column and the right edge of the
control is less than the default width of a column.
- The distance between the bottom row and the bottom edge of the
control is less than the default width a row.
WORKAROUND
To work around this problem, add the following statements to the
Form_Load procedure to set the ScrollBars property to 0 (none), then
back to the original setting.
Sub Form_Load ()
save% = Grid1.ScrollBars ' save setting
Grid1.ScrollBars = 0 ' turn off scroll bars
Grid1.ScrollBars = save% ' restore setting
End Sub
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. We are researching this problem and will
post new information here in the Microsoft Knowledge Base as it becomes
available.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | kbbug KB80967 |
---|
|