title: How can I use GetType() for CheckBox?
body: <p>I'm currently working with C++ and .NET 1.1 (Don't ask...), and I'd like to check if an object is a CheckBox.</p>
  
  <p>GetType seems the obvious choice, but for some reason I can't get it to work like I want. Using <code>GetType()</code> on an instance of a CheckBox works fine, but trying to use <code>Type::GetType("System.Windows.Forms.CheckBox")</code> does not.</p>
  
  <p>The following code will throw an exception on the second line, despite what should (in my mind at least) be a perfectly formatted string being fed to <code>GetType(temp)</code>. If I replace <code>temp</code> with, for example, <code>"System.Int32"</code> instead, it works fine as well.</p>
  
  <pre><code>String* temp = (this-&gt;checkBox1-&gt;GetType())-&gt;ToString();
  temp = (System::Type::GetType(temp))-&gt;ToString();
  </code></pre>
  
  <p>Why is this? =)</p>
  
  <p>I can imagine several different ways to work around this of course, but it just bugs me that I can't get this to work the way I think it should.</p>