Awesome - that works brilliantly :-) Thanx very much.
Dino -----Original Message----- From: The DOTNET list will be retired 7/1/02 [mailto:[EMAIL PROTECTED]] On Behalf Of kojiishi Sent: Friday, 21 June 2002 12:42 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Load an image from a resource file You could add your bitmap to your project, change its property to embeded resource, and then in code: Image img = new Bitmap(this.GetType(), "test.bmp"); -----Original Message----- From: The DOTNET list will be retired 7/1/02 [mailto:[EMAIL PROTECTED]] On Behalf Of Dean Cleaver Sent: Friday, June 21, 2002 9:12 AM To: [EMAIL PROTECTED] Subject: [DOTNET] Load an image from a resource file I've searched wherever I can, and I can't find a sample or any clear directions on how to achieve this. I have an assembly which contains some base forms from which all others are inherited. In my application (which inherits these forms) I would like to provide a resource which the base forms assembly accesses directly and loads the appropriate image (predefined names in the resource file). I've looked at the help on .resources files etc, but am lost - am struggling to even create a .resources file with images in it - the .resx editor in VS seems to only allow plain text. Any help or samples would be appreciated. Cheers, Dino --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.371 / Virus Database: 206 - Release Date: 13/06/2002 You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.371 / Virus Database: 206 - Release Date: 13/06/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.371 / Virus Database: 206 - Release Date: 13/06/2002 You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.