Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Properties in ActiveX Controls
Message
 
To
20/08/2001 09:45:27
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
Visual Basic
Category:
ActiveX controls
Miscellaneous
Thread ID:
00544388
Message ID:
00546516
Views:
20
>>> I tried what you suggested and it worked to a point. I compiled the OCX and used it in a standard project. I then put an ADODC control on the same form. I set the DataField and DataSource properties of the OCX control, but nothing is displayed from the database when I run the project.
>>>
>>>What am I doing wrong?
>>
>>Have you tried to bind a simple text box (only to check that your datacontrol is OK)? Is the property that is set to DataField is displayed in a control?
>>
>>You could send me your project so I can have a look.

Your control is working correctly. You only need to change one line of code in the Form_Load event of your sample.

Change
DataControl1.ewDataField = "ContactName"
to
DataControl1.DataField = "ContactName"
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform