Assuming you have a Dll with the Namespace MyDll and the embedded resource
MyBitmap.bmp resides in the class MyResources and there is a reference to
the dll in your project.
Picturebox.Image = New Bitmap(GetType(MyDll.MyResources), "Bitmap.bmp")
note that the resource name is cAse sEnstive. i.e. Mybitmap.bmp <>
Mybitmap.BMP
"Julia Beresford" <an*******@discussions.microsoft.com> wrote in message
news:9F**********************************@microsof t.com...
Hi All
You can add a Bitmap to a VB class library and set it's build action to
embedded resource. How do you then get that image (i.e. load it into a
PictureBox control) from another vb application knowing only the name of the
DLL and of the Bitmap?
Many thanks for any help with this.
Julia Beresford
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.683 / Virus Database: 445 - Release Date: 12/05/2004