Z
Zoury
Good day! :O)
I have the following code :
//***
using System;
using System.Windows.Forms;
<snip>
private void button1_Click(object sender, System.EventArgs e)
{
Type type = Type.GetType("System.Windows.Forms.TextBox");
if (type != null)
{
MessageBox.Show(type.FullName);
}
}
//***
I've read in the archives that GetType() returns null if the assembly isn't
loaded... In this case the assembly is loaded but GetType always returns
null. Any ideas on what I'm doing wrong?
Thanks a lot!
I have the following code :
//***
using System;
using System.Windows.Forms;
<snip>
private void button1_Click(object sender, System.EventArgs e)
{
Type type = Type.GetType("System.Windows.Forms.TextBox");
if (type != null)
{
MessageBox.Show(type.FullName);
}
}
//***
I've read in the archives that GetType() returns null if the assembly isn't
loaded... In this case the assembly is loaded but GetType always returns
null. Any ideas on what I'm doing wrong?
Thanks a lot!