Wednesday, March 22, 2006

vbCity/DevCity.NET Forums :: Visual Basic :: VB Controls & ActiveX :: ToolBoxBitmap: "Hard job

The toolboxbitmap is strored in the ocx as a ressource as a Bitmap. you can retrieve the Id in the registry under the ClsId of the ocx at the Key ToolBoxBitmap32

So you must first retreive the clsId, then look in the registry for the toolboxbitmap32 Id, then load the ocx with the function LoadLibrary, find the ressource as a byte array, save the array as file , unload the library and then you can use loadpicture to retrieve it

Good Luck
"

0 Comments:

Post a Comment

<< Home