>Hi all,
>
>I've created a property for my subclassed label thats called 'boundto'. This property shall reference to a textbox. However I don't know how to insert an object-reference into this property at designtime. Is this possible at all or do I have to continue with using macro-substitution?
>
>Thanks in advance
First, boundto is a property of other base classes like a textbox and could be misleading to anyone else looking at the program.. I would suggest changing the property name.
To assign the object reference
This.BoundTo = Thisform.OtherTextField (or whatever the object name is).
Just make note that before the "othertextfield" object can be released (as when a form closes), you must first release the This.BoundTo value. Otherwise the dangling object reference will prevent the form from closing.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement