Usercontrol indexed property, how to show in the IDE?

N

Noozer

I have a usercontrol. One of the properties is a group of four images. If I
add the control to a form and look at it's properties I don't see any way to
access this property.

Can someone point to to the help file or webpage to explain how I can get
this property to appear in the IDE?

(...also is there a "name" for this kind of property?)

This is the code for this property...

Public Enum hotState
Normal
Hot
Down
Disabled
End Enum

Dim Images(3) as Image

'Set/Return any of the images, based on the index provided
Public Property Image(ByVal index As hotState) As Image
Get
'Return the normal button image
Return Images(index)
End Get
Set(ByVal value As Image)
'Memorize the normal button image
Images(index) = value
End Set

End Property
 

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