mrdutchie Posted October 16, 2003 Posted October 16, 2003 Ok, I have 3 icons in 1 ICO file, but how can I get each one seperate?. So far when I open the ICO file, It only shows the 1st one. Quote
*Experts* Volte Posted October 16, 2003 *Experts* Posted October 16, 2003 In the Image menu, you can select from the Current Image Type submenu the icon you wish to view. You can then copy the icon to a new file. Quote
mrdutchie Posted October 17, 2003 Author Posted October 17, 2003 Thanks, but I am not sure if we are on the same page;) If I add a ICO file to the Images collection library as number 5 then I can select that icon within my ie. my button as Imageindex 5 but how can I get within that ICO file that's in the Library under 5 the second or third icon, like image 5(1) or 5(2) just like a array Or do I need to save the icons all as seperate ICO files instead of 1 ICO file. Like the MS icons that have sometimes 6-8 pictures in it, each for it's own resolution. Quote
*Experts* Volte Posted October 17, 2003 *Experts* Posted October 17, 2003 So, are you using an ImageList here, or what? I wouldn't recommend using .ico files for things like toolbars and whatnot, since they can act a bit wierd (showing the wrong size at times or whatever). I suggest you extract the files you need and save them as bitmaps (icons are basically just a bunch of little bitmaps in one file, anyway) and use those. Sorry if I misunderstood your problem - you were a little vague. Quote
mrdutchie Posted October 17, 2003 Author Posted October 17, 2003 Thanks... That might also explain why sometimes the icons are goovy. I will convert them to Bitmaps and use it like that. Thanks again :) :cool: Quote
*Gurus* divil Posted October 17, 2003 *Gurus* Posted October 17, 2003 Icons are often best left in their original icon format, using the Icon class. If you want to extract a certain sized icon from an existing icon, you use the constructor of the Icon class, passing in the original instance and the size you want. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
mrdutchie Posted October 17, 2003 Author Posted October 17, 2003 Thank Devil... Guess I will be busy this weekend finding out how that part works.. :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.