News:

SMF - Just Installed!

Main Menu

Preloaded graphics

Started by Mark25, June 21, 2016, 11:51:16 AM

Previous topic - Next topic

Mark25

How do I load a graphic into a button from an existing picture object without having to save it to a file first?
It's faster and easier to manage preloaded graphics.
I'm using VB6.

Thanks

Mark

Administrator

Hello,

if you want to load the picture available inside an image control, for example named Image1, you can try to load it in the following way:



    Btnctrl.SetPictureFromHandle PICTURE_NORMAL, Form1.Image1.Picture.Handle



Kind regards

Severino Delaurenti
MultiMedia Soft