Fix embedded resources for a generic UserControl
问题 During a refactoring, I added a generic type parameter to MyControl , a class derived from UserControl. So my class is now MyControl<T> . Now I get an error at runtime stating that the embedded resource file MyControl`1.resources cannot be found. A quick look with .NET Reflector shows that the resource file is actually called MyControl.resources , without the `1 . At the start of the MyControl<T>.InitializeComponent method there is this line which is probably the one causing problems: System