Reference a resource from another assembly

G

Guest

I have added various bitmap resources to an assembly. I had added a
reference to that assembly from another assembly. While creating a WinForm
from this 2nd assembly, I add a button and attempt to set it's Image property
via the visual designer. However, I am unable to select the bitmap resource.
I know that i can do this programmatically, but need to be able to do it via
the visual designer.

Is this possible?

Thanks.
 
A

Armin Zingler

rmunson8 said:
I have added various bitmap resources to an assembly. I had added a

reference to that assembly from another assembly. While creating a
WinForm from this 2nd assembly, I add a button and attempt to set
it's Image property via the visual designer. However, I am unable
to select the bitmap resource. I know that i can do this
programmatically, but need to be able to do it via the visual
designer.

Is this possible?

You couldn't use the resource in the designer even if it was the same
assembly. If you select an image file and assign it to the property, the
image is also stored as a resource in the assembly.

Armin
 
G

Guest

In Whidbey Beta 2 you can select from a list of existing resources if they
are in the same assembly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top