Generated forms of descendants cannot be displayed in the form designer!

I have a common base form, and descendant forms do not work in the designer. This is apparently a well-known problem, and the same answer is given here and here , to name just two places.

This solution works for everyone else, and when I implement it, at least I get another error:

"Could not find resources suitable for the specified culture or neutral culture. Make sure that" MyBaseForm`1.resources "was correctly integrated or connected to the assembly" MyAssembly "at compile time or that all necessary satellite assemblies are downloadable and fully signed."

My classes are:

public partial class MyBaseForm<T> : Form { }

#if DEBUG
public partial class MyIntForm_Design : MyBaseForm<int> {
}
#endif

public partial class MyIntForm
#if DEBUG
: MyIntForm_Design {
#else
: MyBaseForm<int> {
#endif
}

Now, what do I need to jump over here?

EDIT: OMG, - , . Icon, - . , !

, , !

+3
2

, , : BaseForm, Icon ( ).

:

public partial class MyBaseForm<T> : BaseForm { }

!

+3

, :

UserControl

, , -, , , , . :

System.ComponentModel.ComponentResourceManager =                  CustomComponentResourceManager (typeof (MyBaseForm < > ), "MyBaseForm" );

InitializeComponent ( UserControl ), . , .

, , . . , , !

+2

Source: https://habr.com/ru/post/1794655/


All Articles