By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,140 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

get Type for a class

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Dim t As Type = GetType(Namespace.ClassName)

-Rob Teixeira [MVP]

"keith" <an*******@discussions.microsoft.com> wrote in message
news:B3**********************************@microsof t.com...
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

Nov 20 '05 #2

P: n/a
* "=?Utf-8?B?a2VpdGg=?=" <an*******@discussions.microsoft.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.