KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am buidling a user control. Currently it consists of a textbox and a button - as a learning experience. This will be used as a basis for a more useful control. I want to add a DataSource, display member and ValueMember. Here is my code for the datasource. It will display in the Properties editor, but is disabled and grayed out. What am I missing? private object MyDataSource; [Browsable(true)] [TypeConverter("System.Windows.Forms.Design.DataSourceConverter")] [System.ComponentModel.Bindable(true)] public object DataSource { get { return MyDataSource; } set { if (MyDataSource != value) MyDataSource = value; } }
Tags (comma-separated)
Save Edits
Cancel