Please don't cross post the same message. Posting it once is more than enough.
That said, look at the docs for GetType:
http://msdn2.microsoft.com/en-us/library/system.type.assemblyqualifiedname(VS.80).aspx
You need to specify the assembly name in addition to the type. Untested, but something like this should work:
Dim myType As Type
Dim myAssembly As System.Reflection.[Assembly]
Dim myObject As New MyClass()
myType = myObject.GetType()
myAssembly = System.Reflection.[Assembly].GetAssembly(MyClass.GetType())
myType = System.Type.GetType("MyNamespace.MyClass," & myAssembly.FullName)
It's a bit too much code, and does already what you want at line 4. However, you need some way to get at the assembly's FullName.
I am sure there are smarter ways to do this, but this may get you in the right direction.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out
this post.