PDA

Click to See Complete Forum and Search --> : Icon help..


Andrew Herrmann
Nov 12th, 1999, 12:28 AM
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!!

Aaron Young
Nov 12th, 1999, 01:33 AM
What are you using to load the Resource?
This works fine for me on NT & Win95:

Icon = LoadResPicture(101, vbResIcon)

------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
adyoung@win.bright.net

Andrew Herrmann
Nov 12th, 1999, 02:41 AM
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.