Home All Groups Group Topic Archive Search About
Author
20 Jul 2006 9:30 AM
Romain TAILLANDIER
Hi group

I have created a generic  control (winform) which is like a ComboBox,
displaying a ListView instead of a ListBox, and allow to select a
strongly type item. All the items are of the same type, and the
datasource is a List<> of that type.

public class Selector<E> : Control where E : class
{
     public List<E> Datasource {get;set;}
     public E SelectedItem {get;set;}

}


it is work very fine !
BUT it always crush the designer, which seems to never know what to do
with this control.

How can i integrate it in the designer ?

thank you

Author
20 Jul 2006 9:57 AM
guyWITHproblem
>How can i integrate it in the designer ?
That is I think beyond your scope, what disgner or how it work only
boys from msft knows.

Romain TAILLANDIER wrote:
Show quote
> Hi group
>
> I have created a generic  control (winform) which is like a ComboBox,
> displaying a ListView instead of a ListBox, and allow to select a
> strongly type item. All the items are of the same type, and the
> datasource is a List<> of that type.
>
> public class Selector<E> : Control where E : class
> {
>      public List<E> Datasource {get;set;}
>      public E SelectedItem {get;set;}
>
> }
>
>
> it is work very fine !
> BUT it always crush the designer, which seems to never know what to do
> with this control.
>
> How can i integrate it in the designer ?
>
> thank you

AddThis Social Bookmark Button