I have a Generic UserControl as blow:
public partial class TreeNodeView<C,T>: UserControl
{
public TreeNodeView(C foo, T foo1)
{
InitializeComponent();
}
}
Either change the partial class as below:
partial class TreeNodeView<C, T>
And because get this error in partial designer class:
Using the generic type 'TreeNodeView' requires 2 type arguments
in line :
System.ComponentModel.ComponentResourceManager resources =
new System.ComponentModel.ComponentResourceManager(typeof(TreeNodeView));
change it to:
System.ComponentModel.ComponentResourceManager resources = new
System.ComponentModel.ComponentResourceManager(typeof(TreeNodeView<C,T>));
The code compile successful but when want to see the designer i see ma messagebox:
a new guard page for the stack cannot be created
and when press OK visual studio close immediately. Anybody know whats my wrong?