Cerebrus
unread,Feb 5, 2009, 11:48:29 AM2/5/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
See this very recent thread:
http://groups.google.co.in/group/DotNetDevelopment/browse_thread/thread/af8719c9d17854cf/
To elaborate a bit, there are atleast 3 ways to evaluate type in VB :
---
'The "GetType" operator is a great convenience for VB users.
Dim t1 As Type = GetType(System.Web.UI.TemplateControl)
'When you know the Assembly Qualified name.
Dim t2 As Type = Type.GetType("System.Web.UI.TemplateControl,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a")
' When you have an object variable.
' I use Label in this example, not TemplateControl, because the latter
has no constructor.
Dim myLabel As New Label()
Dim t3 As Type = myLabel.GetType()
---