PC Review


Reply
Thread Tools Rate Thread

Generic controls

 
 
Romain TAILLANDIER
Guest
Posts: n/a
 
      20th Jul 2006
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

 
Reply With Quote
 
 
 
 
guyWITHproblem
Guest
Posts: n/a
 
      20th Jul 2006
>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:
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Emitting a Generic Type that has a Generic Base Class =?Utf-8?B?UGF0cmljaw==?= Microsoft Dot NET Framework 1 7th Jun 2006 05:14 PM
error C2955: 'Vector' : use of class generic requires generic argument list Herby Microsoft VC .NET 5 14th Mar 2006 04:55 PM
Generic Collection of deferred generic types Steven Cummings Microsoft C# .NET 8 17th Feb 2006 11:42 PM
Generic class derived from NameObjectCollectionBase and generic constraints Gabriel Lozano-Morán Microsoft Dot NET Framework 1 10th Dec 2005 12:11 PM
DotNet 2.0: Is a generic of a subclass a subclass of the generic of its base? Richard Corfield Microsoft Dot NET Framework 5 9th Dec 2004 02:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:56 AM.