Here ya go... If you end up doing a lot of reflection, you'll probably want to import System.Reflection...Private Sub DoSomething(ByVal ClassName As String, ByVal MethodName As String)
'-- Establish locals
Dim loObject As Object
Dim loType As Type
Dim loMethod As Reflection.MethodInfo
'-- Get the type
loType = Type.GetType(ClassName)
'-- Create the object
loObject = Activator.CreateInstance(loType)
'-- Get the method
loMethod = loType.GetMethod(MethodName)
'-- Execute the method
loMethod.Invoke(loObject, Nothing)
End Sub
You can also use the Object Browser in visual studio and look at everything in the System.Reflection namespace. You'll get lots of ideas of what you might want to do