CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2000
    Posts
    12

    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

  2. #2
    Join Date
    Sep 2000
    Posts
    12

    Re: Getting Bitmap resources

    Problem Solved.

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

  3. #3
    Join Date
    Jan 2003
    Location
    7,107 Islands
    Posts
    2,487

    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
  •  





Click Here to Expand Forum to Full Width

Featured