I have a solution that contains 2 winforms app and a classlibrary referenced by the 2 apps... I added some images in resource
but when I go on the winform app and try to add the image into a button appears this:
Is there a way to do this?
thanks
I have a solution that contains 2 winforms app and a classlibrary referenced by the 2 apps... I added some images in resource
but when I go on the winform app and try to add the image into a button appears this:
Is there a way to do this?
thanks
You have to make resource items public instead internal.
To do this, in .resx file in solution explorer select Property Window (Alt+Enter) and in File Properties -> Custom Tool should be ResXFileCodeGenerator
Change this option to PublicResXFileCodeGenerator (if option don't show in dropdown field, don't worry aboit it, write/type PublicResXFileCodeGenerator in field)
After that resources member class will be generated with public modifier and you can access to it from any project that reference assembly.
I hope it can help you!