Create a Form Property
Properties defined in an InteropForm can be exposed to Visual Basic 6.0.
To do so, decorate the custom property with the InteropFormProperty
attribute.
<InteropFormProperty()> _
Public Property HelloText() As String
Get
Return lblHelloText.Text
End Get
Set(ByVal value As String)
lblHelloText.Text = value
End Set
End Property
Public Property HelloText() As String
Get
Return lblHelloText.Text
End Get
Set(ByVal value As String)
lblHelloText.Text = value
End Set
End Property
To quickly define a property use the InteropProperty snippet installed with the toolkit: Simply type interopprop+Tab and complete the property signature.
Only certain Types may be exposed as properties. See Type Restrictions for details.