Hi, I am currently experiencing some problems in designtime using a
UserControl that uses generics.
I have defined a lot of UI components that all inherit from a common
UserControl (for common functionality). I wanted to define a property, Value,
that would be common for all inherited controls but would reflect what kind
of "value" the specific inherited control implemented. My initial thought was
to use generics and define the base class as this:

public abstract partial class EnhancedBase<TValue> : UserControl

This class would define the Value property as this:

public abstract TValue Value
{
get;
set;
}

And I would override this for all the inherited UserControls.
Now, I did already have a different implementation of this, and simply
modified all my classes to use this technique - after a while(the project is
pretty large..) I discovered that the inherited (but not the baseclass!)
UserControls would not display at design time in Visual Studio 2005 beta 2 at
all. All I get now is the red-and-grey error report saying the designer could
not find any controls to display. It specifies the base of my controls and I
have checked that fuslogvw does not report a missing assembly binding.

After this I was not able to create a new Inherited UserControl based on my
baseclass using the wizard - it reports that it cannot find any inheritable
classes in the assembly containing the base class.

The code seems to run fine at runtime - its just the designer that is unable
to show the controls that are using generics.

I can't find any mention of this anywhere - any insight?

Also; I would like to make my usercontrols show up in a specified category
in the toolbox, kind of like [Category("Custom")] works for a properties and
event in the other toolbox. I though I was to use
[DesignerCategory("Custom")] but this does not seem to do anything.

Cheers!