I have a solution with several projects in visual basic.
I made it in visual studio 2019 community and now I try to continue developping it in visal studio 2022 community.
When I run my solution in Debug mode in visual studio 2022, then it works fine.
However when I try to open an user control 'UserControl_A', which I have defined, and this user control 'UserControl_A' contains another user control, say 'UserControl_B', then I get a designer error.
So I removed the user control 'UserControl_B' from 'UserControl_A.designer.vb'.
Then I opened the designer of 'UserControl_A'.
Next I get user control 'UserControl_B' from the ToolBox and put it at the correct place in UserControl_A, and then I get the following error:
Failed to create component 'UserControl_B'. The error message follows: 'system.IO.FileNotFoundException: Could not load file or assembly 'name of assembly in my solution'
UserControl_B uses objects from 'name of assembly in my solution'
UserControl_A and UserControl_B are in the same project. When I open UserControl_B in Design mode, then it opens correctly, no error.
So when running the program then this 'assembly in my solution' can be found by visual studio, but when I try to put UserControl_B in UserControl_A it fails to do so.
Can anyone help me, how to fix this?
Thanks.