I've created a control while the program is working:
Set lblTree = Main.Controls.Add("VB.Image", "Tree")
With lblTree
.Width = 700
.Visible = True
.Height = 700
.ToolTipText = "HI"
.Top = 500
.Left = 500
End With
And how to add source code to the created control??
(Private Sub Tree_Click() )
help me plz
thx in advance
Set lblTree = Main.Controls.Add("VB.Image", "Tree")
With lblTree
.Width = 700
.Visible = True
.Height = 700
.ToolTipText = "HI"
.Top = 500
.Left = 500
End With
And how to add source code to the created control??
(Private Sub Tree_Click() )
help me plz
thx in advance