Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing icons

Status
Not open for further replies.

jgos

Programmer
Sep 27, 2002
38
0
0
US
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 !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top