CellPictureAlignment Property Example

The following code sets the picture alignment of the current cell to right center using the constant value.

Note   If you are using the MSFlexGrid, substitute "MSHFlexGrid1" with "MSFlexGrid1."

Sub Form1_Load 
   MSHFlexGrid1.CellPictureAlignment =_
   flexAlignRightCenter
End Sub