Article ID: 150237
Article Last Modified on 6/24/2004
Grid1.Font.Size = 10use the FontSize property, which is a property of the Grid object. For example:
Grid1.FontSize = 10When the latter method is used, the cell size changes as the font size is adjusted.
Private Sub Form_Load()
Grid1.Text = "Hello"
End Sub
Private Sub Form_Click()
Grid1.Font.Size = Grid1.Font.Size + 4
End Sub
Private Sub Form_Click() Grid1.FontSize = Grid1.FontSize + 4 End SubThe cells grow as the font grows each time the form is clicked.
Additional query words: kbVBp400bug kbVBp kbdsd kbDSupport kbControl
Keywords: kbbug KB150237