voilà, d'abord salut à tous!
à partir d'un menu créer, je choisis une certaine action. à la suite de quoi apparait un certain nombre d'objet sur ma fenêtre (checkbox.....).moi ce que j'aimerais c'est si je choisis un autre sous-menus.ma fenêtre se nettoye et efface les objets inséré précédemment.
mes objets sont insérés avec le code:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
If Index = 0 Then
 For i = 0 To 7
    cmdIndex = cmdIndex + 1
    Load Check1(cmdIndex)
    Check1(cmdIndex).top = Check1(cmdIndex - 1).top + 360
    Check1(cmdIndex).Visible = True
    Check1(cmdIndex).Caption = X(cmdIndex)
    Check1(cmdIndex).Value = Checked
 Next
End If
j'ai essayé Form1.Cls
mais ca fait rien

quelqu'un à 1 idée