Possible Duplicate:
Is it Possible to Make a Generic Control in .Net 3.5?
How do I create a UserControl<T>
in C# in Winforms or Webforms?
public partial class MyView<T> : UserControl
{
public MyView()
{
InitializeComponent();
}
}
When I try this, I get the following error message:
The name 'InitializeComponent' does not exist in the current context
Is it not possible to make a UserControl generic in .NET 3.5?