How do get a dll's resources
By resources i mean the stuff that you can put in like Images,files,icons ect.
How to you call the resources:)

Recommended Answers

All 3 Replies

What i need - Let's say i have button and i want to get a image from My dll Example Button.Image = Dll.Resources.globe
Do you think its possible
- please reply:)

Yes it is possible...
You have to set the images in your dll to "Embedded Resource"
I will attach an example app. Just build the whole solution, run the testApp and click the button.

in your app you can get the resources like in the example below...

Dim img As Image = Image.FromStream(System.Reflection.Assembly.LoadFrom("externalResources.dll").GetManifestResourceStream("externalResources.de.gif"))
PictureBox1.Image = img
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.