Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Properties in ActiveX Controls
Message
 
À
20/08/2001 09:45:27
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Divers
Thread ID:
00544388
Message ID:
00546516
Vues:
13
>>> 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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform