Reference a resource from another assembly

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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
 
In Whidbey Beta 2 you can select from a list of existing resources if they
are in the same assembly.
 
Back
Top