How does one go about creating copies of a User Control programatically? I tried this pitiful method to no avail. I am getting Error 711 "Invalid Class string" on the attempt.
My program has two projects (One for Test. The other is the User Control I am trying to clone.

option Explicit
private withevents cmdObject as UserControl

private Sub Command1_Click()
set cmdObject = Form1.Controls.Add("UserControl.UserControl1", "cmdOne")
cmdObject.Visible = true
cmdObject.Caption = "Dynamic Command Button"
cmdObject.Move 1000, 1000, 1000, 1000
End Sub




John G