hi, i am trying to create a custom bindable ToolStripTextbox . it does not want to appear in the toolbox as a control, what am i missing or cannot do?
Imports
System.ComponentModel
<ComplexBindingProperties(
"DataSource", "DataMember"), _
DefaultBindingProperty(
"Text"), _
ToolboxItem(
"System.Windows.Forms.Design.AutoSizeToolboxItem,System.Design")> _
Public
Class myToolStripTextbox
Inherits ToolStripTextBox
Dim ds As Object
Dim dm As String
<Category(
"Data"), _
Description(
"Indicates the source of data for the control."), _
RefreshProperties(RefreshProperties.Repaint), _
AttributeProvider(
GetType(IListSource))> _
Public Property DataSource() As Object
Get
Return ds
End Get
Set(ByVal value As Object)
ds = value
End Set
End Property
<Category(
"Data"), _
Description(
"Indicates a sub-list of the data source to show in the control.")> _
Public Property DataMember() As String
Get
Return dm
End Get
Set(ByVal value As String)
dm = value
End Set
End Property
End
Class