Does anyone know how to select a different size icon from an icon file through code. For example, I have a toolbar that I want to change the size of. It has 16x16 icons on it and when it is resized, I want to put in 24x24 or 32x32 icons from the same icon file.
Why don't you use a ImageList in Microsoft Common Control ?
Here the code for it....
Create new Toolbar and new Image List
Sub ChangeSize()
ImageList1.ImageHeight=32
ImageList1.ImageWidth=32
Toolbar1.Imagelist=ImageList1
End sub
You can make many imagelist in a form but REMEMBER each toolbar has ONLY a Image list !
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.