Thread: ByRef property
View Single Post
  #1 (permalink)  
Old September 27th, 2005, 05:24 PM
rolandatem rolandatem is offline
Authorized User
Join Date: Mar 2004
Location: Mesa, AZ, USA.
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default ByRef property

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

Private m_labelItem As Label

Public Property LabelItem As Label
        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?

Reply With Quote