Question DataSource Built In Property Editor?

JaedenRuiner

Well-known member
Joined
Aug 13, 2007
Messages
340
Programming Experience
10+
On every Standard control that has the DataSource/DataMember property, the editor pops up immediately no problem. I have added a DataSource/DataMember property to my control and want the have the exact same behavior, but I can't seem to find ANYWAY the listing for the Built in attribute set for existing editors.

Basically, I want the 3-4 lines of Source that define the DataSource/DataMember property for the DataGridView, ComboBox, ListBox, etc. There is one build in to Vb.Net and I just want to use it, not write my own.

Thanks
 
Add this attribute to the property:
VB.NET:
<AttributeProvider(GetType(IListSource))>
(System.ComponentModel types)

Use for example Reflector to view disassembled source code for the .Net libraries, this can give you much insight in how these classes are built.
 
Back
Top