Use Session.CreateComponent or .AddComponent in Visual Basic.NET.
Private MyComponent As LANSA_MYCOMP_LIB.MYCOMP
If Session.IsConnected then
MyComponent = Session.CreateComponent("MYCOMP")
End if