Visual Basic.NETで、Session.CreateComponent または .AddComponentを使います。


Private MyComponent As LANSA_MYCOMP_LIB.MYCOMP
 
If Session.IsConnected then
MyComponent = Session.CreateComponent("MYCOMP")
End if