Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object Type Property
Message
De
17/04/2001 05:49:48
 
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Divers
Thread ID:
00495625
Message ID:
00496021
Vues:
22
>>>>How is it possible to expose an object type property on the active-x control property window such as DATASOURCE property.
>>>
>>>From the Tools menu, open «Procedures Attributes». Select one of the property you want to be databound. Click the Advanced button. Click at least on «property is databound» and «This property binds to datafield».
>>
>>This works fine.
>>I have another case where the active-x user must enter in the ChildFormName property the form name to be called, and as you know the form is an object which means that I can't issue ChildFormName.Show command.
>>Any workaround??
>
>You can use the Forms collection:
>
Private Sub Command1_Click()
>Dim x As Form
>
>    Set x = Forms.Add("form2")
>    x.Show
>End Sub
This does not work, because ChildFormName property is not an object type property, it only contains the name of the form to be open.
In another word, what is the way to expose object type property in property window of active-x control when used by the end-user.

Concerning the very first question about datasource property, what about if I have two textboxes binded, how is it possible to assign each textbox with the appropriate property name.
System Analyst
Nabil B. Ghrayyeb
nabilg@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform