|
-
July 7th, 2008, 12:58 PM
#1
Getting Bitmap resources
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
-
July 8th, 2008, 01:29 AM
#2
Re: Getting Bitmap resources
Problem Solved.
Stupid Visual Studio. I've to close VS to take effect.
-
July 8th, 2008, 06:41 AM
#3
Re: Getting Bitmap resources
hahaha nice to know you worked it out
Busy 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|