|
-
Dec 31st, 2007, 06:14 AM
#1
Thread Starter
Junior Member
can u add code to objects created on the fly?
can u add code to objects created on the fly?
For example if i run the following code then i want to run some code if a command icon is clicked.
Static X As Integer
X = X + 1
Set Commandbject = Me.Controls.Add("VB.CommandButton", "CommandButton" & X)
With CommandObject
.Caption = "Name"
.Top = 500
.Left = 500
.Height = 500
.Width = 500
.Visible = True
End With
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|