Use images from resources in Combobox

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi, I would appreciate some help on a project Im banging my head against a wall with!
I have about 10 .png images in my.resources that I want to show in a Combobox, without any text. Theyre all slightly different sizes, so want them scaled to 40 pixels high x whatever the scaled width is.
When the end user selects an image in the Combobox, I want to store which of the my.resources items was selected to be saved so that I can then use it later on (for example, I want to save the value in my.settings, so that I can repopulate the
combo box with the chosen image on next load).
I know how to load images into a combobox, but am having problems with the scaling - I also cant figure out how to load images from my.resources (its easy with an imagelist, but how do I do it from my.resources?), or how to reference the selected
resource for later use. Any help would be greatly appreciated.
Edit: This is a VB.NET winforms project being built in VS2008.
Thanks
DamianC
<br/>

View the full article
 
Back
Top