Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not finding Resource item that I know exists

Status
Not open for further replies.

PoppapumpJ

Programmer
Dec 17, 2001
86
US
I am making reference to an icon I have in my resource file. It's Key is 101.

When I try to load it with
set oICON = LoadResPicture(101, vbResIcon)

It says resource with Identifier '101' not found.

I can open my resource file and see the Icon with a key of 101.

Anyone have any ideas?

thanks
 
Does it work if you change vbResIcon to vbResBitmap? The image may be loaded into the bitmap part of the res file.
 
thanks for your response.

I originally loaded this as a bitmap. However It loaded as a square. I changed it to an Icon to take advantage of the transparent background.

I've looked into some microsoft documentation and it looks like tool bar buttons may not support icon images.

weird?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top