A
Alvaro E. Gonzalez V.
Hi;
I have a method that receives one of its parameters receives control of a base class that I made and
it´s inherited from UserControl. This parameter named as ctrl.
In the other parameters receives the necessary information in order to instantiating ctrl, This
control that inherits from this base class.
This instance I am doing with Activator.CreateIntance (assemblyName, typeName). This returns a
ObjectHandle.
Then invoke ObjectHandle.UnWrap() to get back the control and save instanced in a variable
System.Object, whenever I ctrl allowance of such an object to doing casting, And raise
"InvalidCastException"
Wath I do?
Tks.
Alvaro.
I have a method that receives one of its parameters receives control of a base class that I made and
it´s inherited from UserControl. This parameter named as ctrl.
In the other parameters receives the necessary information in order to instantiating ctrl, This
control that inherits from this base class.
This instance I am doing with Activator.CreateIntance (assemblyName, typeName). This returns a
ObjectHandle.
Then invoke ObjectHandle.UnWrap() to get back the control and save instanced in a variable
System.Object, whenever I ctrl allowance of such an object to doing casting, And raise
"InvalidCastException"
Wath I do?
Tks.
Alvaro.