Solved
ActiveX control and Datasource, ie bind my activeX ctrl to ADO control
Posted on 2002-05-06
Hi,
I am learning how to make an ActiveX controls.
I have been creating my own 'CoolTextBox' with properties properties like 'ChooseType'(which takes Numbers, letters or both) and 'ChooseCase'(which takes upppercase, lower case or both) etc. These works just fine.
I went a step further, and wanted my 'CooltextBox' to be bound to my ADO control in my Vbapplication.
Thru the ActiveX control Interface wizard, i mapped the Datasource property with datasource property of the text1. I also wanted to bind the Datafield property, but did'nt find it in the available properties.
I guess, the DataSource and the DataField are the 2 properties one needs to have, so that it can be bound to the ADO control in the Vb Application which would be using the cooltextbox control.
But it gives the follwoing error:
"User-defined datatype not defined" at the Datasource property.
Should i be giving any references. Where am i going wrong?
What are the different properties that i should bind to the text box in ActiveX control which will be simlar to any other textbox bound to the ADO control in my vb appln.
Priya