Click to See Complete Forum and Search --> : Getting Bitmap resources


jackhui
July 7th, 2008, 12:58 PM
Anyone can tell me how to load a bitmap in an "Images" folder in a project. It is a gif image with Embedded Resources setting.

imageList.Images.Add(new Bitmap(this.GetType(), "Images.funny.gif"));

but seems it's not working.

In VS.2008, it complained me Resources 'Images.funny.gif' cannot be found in System.Windows.Forms.RichTextBox

My control is derived from a RichTextBox

jackhui
July 8th, 2008, 01:29 AM
Problem Solved.

Stupid Visual Studio. I've to close VS to take effect.

Thread1
July 8th, 2008, 06:41 AM
hahaha nice to know you worked it out :D