Click to See Complete Forum and Search --> : VisualBasic


July 23rd, 1999, 06:49 AM
I have created an instance of an activex control dynamically (which is not referred i.e. it does not appear in the toolbox) at run time by adding the control to the forms controls collection. But I am having problem to access the properties and calling the methods.Please help me.

Lothar Haensler
July 23rd, 1999, 07:08 AM
here is a sample for accessing the properties:

Dim l as Control
set l = me.Controls.Add("VB.Label", "mylabel")
l.Visible = true
l.Top = 0
l.Caption = "test"