Herfried K. Wagner:
Untested: 'PropertyInfo' has a 'PropertyType' property that will return
the type of the property. Then you can use 'GetProperty' on the font's
type to get the name property.
Thanks for the reply, now i can get the Font.Name property,
Public Const MemberAccess As BindingFlags = BindingFlags.Public Or
BindingFlags.NonPublic Or BindingFlags.Static Or BindingFlags.Instance
Or BindingFlags.IgnoreCase
Dim fontPropInfo As PropertyInfo = ctrl.GetType.GetProperty("Font",
MemberAccess)
Dim fontNamePropInfo As PropertyInfo = fontPropInfo
..PropertyType.GetProperty("Name")
But how to Get or Set the property value, The GetValue and SetValue
need the instance reference, but i don't know how to get the reference
from the fontNamePropInfo
fontNamePropInfo.GetValue( ??, nothing )
Thanks
JCVoon