How to use Datasource wizard property dynamically
can i use combobox datasource wizard dynamically in my application
..
open vb.net windows application..then take one combobox..Then goto combobox properties ..Then select Datasource and click on ADD project Datasource..It's open One wizard(Datasource configuration wizard)..ok..
Now come to my application
i am developing one designing tool..in my tool also having combobox ..i am setting all the properties to combobox ..all are working fine..but This datasource property is not working fine.. i can use this DataSource Wizard Dynamically to my combobox Datasource property...
This is the code i use for setting the property..
Private MyDataSource As Object
<Browsable(True)> _
<Category("Data"), AttributeProvider("System.ComponentModel.IListSource")> _
Public Shadows Property DataSource() As Object
Get
Return MyDataSource
End Get
Set(ByVal value As Object)
If MyDataSource <> value Then
MyDataSource = value
End If
End Set
End Property
Private mDateMember As String = ""
<Category("Data"), Editor("System.Windows.Forms.Design.DataMemberListEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor")> _
Public Property DateMember() As String
Get
Return mDateMember
End Get
Set(ByVal value As String)
mDateMember = value
End Set
End Property