Hi,
I seem unable to get a form instantiated from a sting value.
I have
But it just errors with
Inteli-sense shows that Frm = null?
The form exists in the assembly, why can't I create an instance of it?
Thanks,
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
I seem unable to get a form instantiated from a sting value.
I have
Code:
internal Form Frm { get; set; }
Frm = (Form) Assembly.GetExecutingAssembly().CreateInstance(FormName);
Frm.Show();
But it just errors with
An unhandled exception of type 'System.NullReferenceException' occurred
Inteli-sense shows that Frm = null?
The form exists in the assembly, why can't I create an instance of it?
Thanks,
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music