>The cast statement txtBox = (TextBox)field; throws the InvalidCastException. >What I'm doing wrong ? Is casting not allowed on reflected types?
How (from where) do you get the FieldInfo? If you have any Assembly.LoadFrom() calls involved, be sure to read this article Application Isolation and Assembly.LoadFrom http://www.gotdotnet.com/team/clr/LoadFromIsolation.aspx Mattias === Mattias Sj�gren [EMAIL PROTECTED] You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.
