MultiMedia Soft forum

MultiMedia Soft products => User interface components => Topic started by: Mark25 on June 21, 2016, 11:51:16 AM

Title: Preloaded graphics
Post by: Mark25 on June 21, 2016, 11:51:16 AM
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
Title: Re: Preloaded graphics
Post by: Administrator on June 21, 2016, 11:53:47 AM
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