ActiveX control with data properties

I am developing an ActiveX control.
I want to be able to bind the ActiveX control to a data control that will be used on the form on which this ActiveX control will be inserted.
How can I add the two properties 'DataSource' and 'DataField' to my ActiveX control so that the control can be bounded automatically to the data control.
I can only add a DataSource property but I don't know what code I should write for it.
Also, when I add a DataField property, the wizard does not accept such a property.
Please provide code.
Thank you.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
Go to the "Tools->Procedure Attributes" menu item, select your property from the combo box at the top and then click on the Advanced button. Now in the last frame at the bottom select the property is databound and that you want it as datafield. If you have more than one property in your control, you can only have one "Datafield" but as many "Databindings" as you wish.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
activexAuthor Commented:
Thank you for the answer.
It helped much.
Just one problem:
I can get the name of the DataField by using Extender.DataField from within my control. However, I can not get the name of the DataSource. Any ideas?
Thank you in advance.
Éric MoreauSenior .Net ConsultantCommented:
No particular ideas except that the DataSource property is not singular (it is an object)!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.