Visual Basic.NETで、Session.CreateComponentまたは.AddComponentを使います。
Private MyComponent As LANSA_MYCOMP_LIB.MYCOMPIf Session.IsConnected thenMyComponent = Session.CreateComponent("MYCOMP")End if
Private MyComponent As LANSA_MYCOMP_LIB.MYCOMP
If Session.IsConnected then
MyComponent = Session.CreateComponent("MYCOMP")
End if