M
Michael Rodriguez
Is it possible to have a Windows form that is declared as a generic type,
i.e.:
public partial class DataEntry<T, C> : DataEntryBase
where T: ...
where C: ...
I tried that, but it chokes on this line:
System.ComponentModel.ComponentResourceManager resources = new
System.ComponentModel.ComponentResourceManager(typeof(DataEntry));
I can make that compile by doing this:
System.ComponentModel.ComponentResourceManager resources = new
System.ComponentModel.ComponentResourceManager(typeof(DataEntry<,>));
But then the screen won't load, it says it can't find the resource file.
Any ideas?
TIA,
Mike Rodriguez
i.e.:
public partial class DataEntry<T, C> : DataEntryBase
where T: ...
where C: ...
I tried that, but it chokes on this line:
System.ComponentModel.ComponentResourceManager resources = new
System.ComponentModel.ComponentResourceManager(typeof(DataEntry));
I can make that compile by doing this:
System.ComponentModel.ComponentResourceManager resources = new
System.ComponentModel.ComponentResourceManager(typeof(DataEntry<,>));
But then the screen won't load, it says it can't find the resource file.
Any ideas?
TIA,
Mike Rodriguez