If you want to add a CommandButton, at runtime, use this code.
Code:Private Sub Command1_Click() Controls.Add "VB.CommandButton", "Command1" Me!Command1.Move 0, 0 Me!Command1.Caption = "My Button" Me!Command1.Visible = True End Sub
|
Results 1 to 11 of 11
Threaded View
|
Click Here to Expand Forum to Full Width |