How do you pass an object by reference to a property during design?

W

Wayne

How do you pass an object reference to a property during design? In
other words, I would like to type the name of the object in on the
properties window and then use that object to do neat stuff.

See my code below. This is just experimental code but when I add
testit to my form then the Wayne property is grayed out.

Public Class testit
Inherits TextBox
Private m_Wayne As Object = New Object

<Browsable(True)> _
Property Wayne() As Object

Get
Return m_Wayne
End Get
Set(ByVal Value As Object)
m_Wayne = Value
End Set
End Property

End Class
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top