Click to See Complete Forum and Search --> : Loading an image from an Imagelist for a MSHFlexGrid


mrhicks
July 10th, 2001, 01:48 PM
Hello all,

Right now I am loading an image into a MSHFlexGrid control using the CellPicture method.

Example
.CellPicture = LoadPicture(App.Path & "\Check.gif")

I would like to bind an ImageList to the MSHFlexGrid control just as you can with a Coolbar or Toolbar etc... I figured out how to bind the ImageList to the MSHFlexGrid control yet. Is there a way to do it? Basically, I don't want to include any unnecessary files with my exe file. I would like to have everything that is need built into the exe file. Is there a way to do this so I don't have to use the LoadImage function? Thanks

Mark

John G Duffy
July 10th, 2001, 04:53 PM
If nothing else, you can load your images into a Resource file and use the LoadResPicture Function like this

set MSHFlexGrid1.CellPicture = LoadResPicture("UPARROW", vbResBitmap)



Using a Resource file will include your images as part of the executable.
The Resource Editor can be accessed by using Addin Manager and loading the Resource editor then Click TOOLS/ Resource editor to add images

John G