S
Skysurfer
Hi.
I have some control of different type which have a particolar property, for
instance MyProp.
Some other controls don't have this property.
How can i make a generic sub that set this property without cast?
I can test if the control has the property with this line:
Control.GetType.GetProperty("MyProp")
But... how can i set this property?
I don't want to cast Control, because it could be of different types.
Thanks
Skysurfer
I have some control of different type which have a particolar property, for
instance MyProp.
Some other controls don't have this property.
How can i make a generic sub that set this property without cast?
I can test if the control has the property with this line:
Control.GetType.GetProperty("MyProp")
But... how can i set this property?
I don't want to cast Control, because it could be of different types.
Thanks
Skysurfer