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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

picture on a MSFlexGrid

Status
Not open for further replies.

ceodav

Programmer
Feb 21, 2003
106
IT
hi everybody,
i need help working with msflexgrid...
i'd like to fill a single cell neither with text nor with number but with a picture!!
is it possible?
i've been looking for...loadpicture..but i didn't find it yet.

thanks in advance

D.
 
Following code will load "c:\picture.bmp" image in 1st column of 1st row of flex grid (Grd).

'Code
Grd.Row = 0
Grd.Col = 0
Set Grd.CellPicture = LoadPicture("c:\picture.bmp")
 
If your image exists somewhere on your form then you don't need the load picture function. You can then align the picture how you wish.

Code:
Set MSFlexGrid1.CellPicture = Image1.Picture
   MSFlexGrid1.CellPictureAlignment = flexAlignCenterCenter


Thanks and Good Luck!

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top