Change type of control by type
- by Ruben
Hi,
I'm having following problem.
I should convert a control to a certain type, this can be multiple types (for example a custom button or a custom label, ....)
Here's an example of what i would like to do:
private void ConvertToTypeAndUseCustomProperty(Control c)
{
Type type = c.getType();
((type) c).CustomPropertieOfControl = 234567;
}
Thanks in advance.