ID Number: Q81225
1.00
WINDOWS
buglist1.00
Summary:
The Grid control's RemoveItem method incorrectly allows you to remove
all non-fixed rows when the FixedRows property is 1 or greater.
Microsoft has confirmed this to be a problem with the Grid custom
control supplied with Microsoft Professional Toolkit for Microsoft
Visual Basic programming system version 1.0 for Windows. We are
researching this problem and will post new information here as it
becomes available.
More Information:
The "Microsoft Professional Toolkit for Visual Basic: Custom Control
Reference" description of the FixedRows property correctly states "The
maximum number of fixed columns or rows allowed in a grid is one less
than the total number of columns or rows."
Steps to Reproduce Problem
--------------------------
1. Run Visual Basic, or from the File menu, choose New Project (ALT,
F, N) if Visual Basic is already running. Form1 is created by
default.
2. From the File menu, choose Add File. In the Files box, select the
GRID.VBX custom control file. The Grid tool appears in the toolbox.
3. Place a grid named Grid1 on Form1. The property Grid1.FixedRows is
1 by default.
4. Enter the following code in the Form_Click event procedure for
Form1:
Sub Form_Click ()
Grid1.RemoveItem 1 ' remove the one non-fixed row
m$ = "Rows: " + Format$(Grid1.Rows) + Chr$(13) + Chr$(10)
m$ = m$ + "FixedRows: " + Format$(Grid1.FixedRows)
MsgBox m$
End Sub
5. Press F5 to run the program. Click on Form1. The RemoveItem method
incorrectly removes the one non-fixed row, leaving the number of
fixed rows the same as the total number of rows (1).
Additional reference words: 1.00