Microsoft KB Archive/81998

= BUG: Grid: No Error Changing FixedAlignment on Non-Fixed Col =

Article ID: 81998

Article Last Modified on 2/23/2007

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Professional Edition
 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Windows 2000 Readiness Analyzer

-



This article was previously published under Q81998



SYMPTOMS
Using the Grid custom control, setting the text alignment of a non-fixed column with the FixedAlignment property will not generate an error. Though this value is saved, it does not affect the text alignment of the specified non-fixed column.



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.



Steps to Reproduce Behavior
 Start Visual Basic or from the File menu, choose New Project (ALT, F, N) if Visual Basic is already running. Form1 is created by default. From the File menu, choose Add File (CTRL+F12), and select GRID.VBX to add the Grid control to the Toolbox. The Grid tool appears in the Toolbox. Add a Grid control to Form1.  Add the following code to the Grid_Click event procedure: Sub Grid_Click Grid1.ColWidth(1)=2000 Grid1.Col=1 Grid1.Row=1 Grid1.Text=&quot;Hello&quot; Grid1.FixedAlignment(1)=1 'Right Justify End Sub  From the Run menu, choose Start (ALT, R, S) to run the program.

Notice that when you click the grid, the FixedAlignment property accepts the new value, but the alignment of the text does not change.

Note that if you try to do the opposite (that is, attempt to set the text alignment of a fixed-column with the ColAlignment property), an &quot;Invalid Column&quot; error message will be displayed.

Additional query words: buglist1.00 buglist2.00 buglist3.00 1.00 2.00 3.00

Keywords: kbbug KB81998

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.