-
I'm trying to load an Icon that's stored in a .RES file... For some reason, when I use this method, the Icon loses its color and becomes shades of grey. If I take the same Icon and load it by using the form properties window, it appears fine.
I've tried saving it as both a 256 color and a 16 color Icon with the same results. I'd love to just load it from the form properties, but I need to load it during program execution (it will change from time to time).
Any help would be greatly appreciated!!
-
What are you using to load the Resource?
This works fine for me on NT & Win95:
Icon = LoadResPicture(101, vbResIcon)
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
-
Yes.. That's how I'm doing it.
I just don't get it -- When I view the Icon with the VB Resource Editor, it looks fine. It's only when it's displayed on the screen that I get a "grey" icon.