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