PDA

Click to See Complete Forum and Search --> : Data prop. Is it so tough ?


vishalmarya
Dec 24th, 2001, 06:18 AM
I want to create an activex control with properties

databindings,datasource,datafield,dataformat,datamember.

how do i create these properties ?

I mean what should be the type of each of these properties
so that these should work the same way they work for other controls ?

seems to be very tough , put at lot of forums, but no reply.

Edneeis
Dec 24th, 2001, 10:09 AM
Well I think generally this is a tricky thing for everybody, but here are some links that may help:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconBuildingDataSources.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconcreatingdatasource.asp

Also just searching for keywords that the ActiveX Control Wizard uses when you have it make a data-aware control.

ozerbursa
Dec 27th, 2001, 02:10 AM
Firstly you must create a property for example Text property for Textbox in your activex control. Then from <Tools> menu select <Procedure Attributes>. In the window select Text property. After that click <Advanced> button, at the bottom of the window you can see <Data Binding> frame. Click <Propert is data bound> check box and next two items which are <This propert binds to DataField>,<Show in DataBindings collection at design time> and that's all. Good Luck.