Hello all.
I am developing an autocomplete combo box control to use in my apps which I will publish for free when it's done.
I have all the functionality I need like turning autocomplete on and off,
change the font and forecolor.
The last hurdle I have come up against is getting it to recognise a DataSource at design time.
I scoured the help but had no luck until I put this in the code for the control :
Public Property DataSource() As Boolean
Get
Return cboAutocomplete.DataSource
End Get
Set(Value As Boolean)
cboAutocomplete.DataSource = Value
End Set
End Sub
Guess what - like I expected - it complains about DataSource being a Boolean
When I hovered over the DataSource part of the property declaration it says it should be a System.Object
I changed it but when I place the control on a form at design time the DataSource doesn't let me select my dataset like it does if you put a normal combobox.
Any ideas?
kind regards,
Ricky
I am developing an autocomplete combo box control to use in my apps which I will publish for free when it's done.
I have all the functionality I need like turning autocomplete on and off,
change the font and forecolor.
The last hurdle I have come up against is getting it to recognise a DataSource at design time.
I scoured the help but had no luck until I put this in the code for the control :
Public Property DataSource() As Boolean
Get
Return cboAutocomplete.DataSource
End Get
Set(Value As Boolean)
cboAutocomplete.DataSource = Value
End Set
End Sub
Guess what - like I expected - it complains about DataSource being a Boolean
When I hovered over the DataSource part of the property declaration it says it should be a System.Object
I changed it but when I place the control on a form at design time the DataSource doesn't let me select my dataset like it does if you put a normal combobox.
Any ideas?
kind regards,
Ricky