Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSHFlexGrid cell alignment in VB 6

Status
Not open for further replies.

drimades

IS-IT--Management
Nov 8, 2004
221
MK
How can I set the alignment of a cell in a MSHFlexGrid. Can I do it for the entire grid?
 
Use the CellAlignment or ColAlignment methods as in
Code:
FlexGrid.CellAlignment = flexAlignLeftCenter
FlexGrid.ColAlignment(1) = flexAlignLeftCenter

[small]No! No! You're not thinking ... you're only being logical.
- Neils Bohr[/small]
 
You can also set the coloumn alignment with the formatstring property and the '<', '>' and '^' characters.
Code:
MSFlexGrid1.FormatString = "<Col1  |>Col2  |^Col3   "

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top