Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Experts*
Posted
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.
Posted

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.

  • *Experts*
Posted

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.

  • *Gurus*
Posted
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.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...