- ChexckBox & ListView URGENT

ckoo Messages postés 96 Date d'inscription jeudi 2 mai 2002 Statut Membre Dernière intervention 18 août 2004 - 4 juin 2002 à 16:50
DragonDo Messages postés 93 Date d'inscription lundi 8 avril 2002 Statut Membre Dernière intervention 22 juillet 2006 - 5 juin 2002 à 08:13
Comment savoir si une checkBox dans une listeView a été cochée ??????????

1 réponse

DragonDo Messages postés 93 Date d'inscription lundi 8 avril 2002 Statut Membre Dernière intervention 22 juillet 2006
5 juin 2002 à 08:13
Mon projet comporte une Form, une ListBox, un ControlButton, un PictureBox.

Private Sub Form_Load()
'----- Déclaration des variables locales
    Dim Ind As Long

'----- Remplissage du contrôle listbox
    For Ind = 1 To 10
        List1.AddItem Ind
    Next
End Sub
Private Sub Command1_Click()
'----- Déclaration des variables locales
    Dim Ind As Long
    
'----- Affichage des valeurs sélectionnées
    Picture1.Cls
    For Ind = 0 To List1.ListCount - 1
        If List1.Selected(Ind) = True Then
            Picture1.Print List1.List(Ind)
        End If
    Next Ind
End Sub


@+ :)
0
Rejoignez-nous