p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   VB.NET 2002/2003 Basics (http://p2p.wrox.com/forumdisplay.php?f=76)
-   -   ByRef property (http://p2p.wrox.com/showthread.php?t=33768)

rolandatem September 27th, 2005 05:24 PM

ByRef property
 
Im wondering if there is a way to create a property that accepts byref controls.

Code:

Private m_labelItem As Label

Public Property LabelItem As Label
    Get
        return m_labelItem
    End Get
    Set(ByRef value As Label)
        m_labelItem = value
    End Set
End Property

The code above obviously doesnt work as Set and ByRef doesnt work together. Is there a way to pass along a control by referrence?


Jeff Mason October 8th, 2005 08:42 AM

Just out of curiosity, why do you think you need to define a property using a byref argument? What are you trying to accomplish with a byref argument?

Jeff Mason
Custom Apps, Inc.
www.custom-apps.com


All times are GMT -4. The time now is 07:53 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.