I'm trying to learn how to add and move objects in VB6 through the code module. SO far i've figured out how to insert an object but have no idea how to change the position.
This is what i have so far:
Option Explicit
Private WithEvents cmdOk As CommandButton
Private Sub cmdOk_Click()
Unload Me
End Sub
Private Sub Form_Load()
Set cmdOk = Form1.Controls.AdD("VB.CommandButton", "CmdOK")
cmdOk.Visible = True
cmdOk.Caption = "OK"
End Sub