get Type for a class

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I designed a user control with namespace UserControls and class name UserControl1

In C#, it is easy to get its type by Type t=typeof(Namespace.ClassName).

Does anyone know how to it in a similar way in a VB program?

Thanks

Keith
 
Dim t As Type = GetType(Namespace.ClassName)

-Rob Teixeira [MVP]
 
* "=?Utf-8?B?a2VpdGg=?= said:
I designed a user control with namespace UserControls and class name UserControl1

In C#, it is easy to get its type by Type t=typeof(Namespace.ClassName).

Use 'GetType' in VB.NET.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top