property PropertiesList.SelectedProperty as Property

Retrieves a Property object that is currently selected.

 TypeDescription 
   Property A Property object that is currently selected.  

Use the SelChange event to notify your application when the current selection is changed. Use the Property property to retrieve a property giving its index or its name. Use the Selectable property to prevent a property to be selected.

The following sample prints the name and the type of the selected property ( for instance, the sample is useful to find out the type of the property selected, when you need to include or exclude properties using the IncludeProperty event):

Private Sub PropertiesList1_SelChange()
    Debug.Print "You have selected the """ & PropertiesList1.SelectedProperty.Name & """. The type for it is: " & PropertiesList1.SelectedProperty.Type
End Sub

Send comments on this topic.
1999-2015 Exontrol.COM, Software. All rights reserved.