[NET] Reflection
- by pipiscrew
using :
Dim a As [Assembly] = [Assembly].LoadFile("C:\test.exe")
Dim testTP As Type
testTP = a.GetType("SplashScreen", True, True)
obj1 = Activator.CreateInstance(withoutFOR)
obj1.show()
my prog made reflection to test.exe SplashScreen loaded , also obj1 filled
when SplashScreen disposed - MainForm loaded the obj1 isnothing!
when try to access obj1 VS say :
AccessibilityObject = {"Cannot
access a disposed object. Object name:
'SplashScreen'."}
I want always obj1 filled from the active form!! how????