>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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only