.NET ImageList new limitations...

  • Thread starter Thread starter tamok
  • Start date Start date
T

tamok

Guest
Hi there

I'm currently upgrading my applications to VB .NET and i got a serious issue : how can i include images in my project bigger than 256x256 ? In fact, the new ImageList module doesn't accept images bigger than 256x256 ; that's annoying

If anyone know how to workaround, feel free to answer me :D
 
If you're trying to include images over 256x256 pixels in your project, chances are an ImageList is not really the best way of doing it. What do you need these images for? ImageLists are really only useful for binding to other controls, IMO.
 
i use my images to do a fake "on mouse over" on my picture items : my images are button, and when the mouse is over, the image changes

so how can i do this, as my pictures are big ?
 
You can include images in the project, and mark their build action as "Embedded Resource". Then you can get them at runtime with the GetManifestResourceStream() method of the Assembly class.
 
Back
Top