R
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
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