You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Designer does not recognize resources from sub-projects. #3862
But the problem now is that the Designer seem not to recognize the resources from sub-projects.
It forcefully embeds the image locally into the form, each time I open the Designer.
Your only solution would be to use the workaround.
The behavior is the same for WinForms and Wisej.NET, where if you modify the designer code everything would be reserialized and all the changes would be lost or modified.
That's the reason for the "do not modify the contents of this method with the code editor.* comment there!
Activity
itg-assistant commentedon Jun 15, 2026
Frank (ITG) answered 2022-09-26 10:59:28 UTC
Hi Kizaemon,
can you please wrap up a small sample as you suggested. This will speed up the process on our side and we´ll take a closer look at it.
Thanks in advance,
Frank
itg-assistant commentedon Jun 15, 2026
Kizaemon Date answered 2022-09-26 14:02:48 UTC
Hi Frank,
thank you very much.
A simple project is attached.
Please see Page1 of the eMaster main app.
The resources in the eResources library are generated using PublicResXFileCodeGenerator, and so are visible by the referencing libraries.
The Select Resource dialog box does not allow selecting images from referenced projects, only from local resources.
As mentioned before, the designer then forcefully embeds the image into local resources.GetObject(...)
Not sure how much efforts there will be to allow the Select Resource dialog box enumerate referenced libraries for resources.
For now, as work-around, I put the image assignment manually outside of the designer into Page constructor, just after InitializeComponent.
public Page1()
{
InitializeComponent();
this.pictureBox2.Image = global::eResources.ComputerFile.Computer_File_011;
}
Kizaemon
itg-assistant commentedon Jun 15, 2026
Alaa (ITG) answered 2022-09-26 21:07:02 UTC
Hi Kizaemon,
Your only solution would be to use the workaround.
The behavior is the same for WinForms and Wisej.NET, where if you modify the designer code everything would be reserialized and all the changes would be lost or modified.
That's the reason for the "do not modify the contents of this method with the code editor.* comment there!
HTH,
Alaa