F
Frank
Anyone Please Help,
Why does this statement work:
Type objType = System.Type.GetType("System.String");
And this one does not work:
Type objType = System.Type.GetType("System.Windows.Forms.DataGridTextBoxColumn");
when I run this statement I get the following exception:
File or assembly name System.Windows.Forms, or one of its
dependencies, was not found.
I read MSDN and saw the you have to use a fully qualified name so I
have also tried:
Type objType = System.Type.GetType("System.Windows.Forms.DataGridTextBoxColumn,System.Windows.Forms.dll");
But this did not work either. I know it has something to do with
finding the location of the assembly.
The end result I want is to read a string from an Xml file at runtime
and create an object from it.
Thanks in advance,
Frank
Why does this statement work:
Type objType = System.Type.GetType("System.String");
And this one does not work:
Type objType = System.Type.GetType("System.Windows.Forms.DataGridTextBoxColumn");
when I run this statement I get the following exception:
File or assembly name System.Windows.Forms, or one of its
dependencies, was not found.
I read MSDN and saw the you have to use a fully qualified name so I
have also tried:
Type objType = System.Type.GetType("System.Windows.Forms.DataGridTextBoxColumn,System.Windows.Forms.dll");
But this did not work either. I know it has something to do with
finding the location of the assembly.
The end result I want is to read a string from an Xml file at runtime
and create an object from it.
Thanks in advance,
Frank