crenaud76
Messages postés4172Date d'inscriptionmercredi 30 juillet 2003StatutMembreDernière intervention 9 juin 200628 25 janv. 2005 à 22:05
Un checkBox ou un OptionButton, selon que tu veux qu'il soit lié à d'autres ou pas .
La check box est indépendante, l'optionbutton, un seul des optionbutton contenu dasn un container (form ou picturebox par exemple) peut être validé au même moment.
Teclis01
Messages postés1423Date d'inscriptionmardi 14 décembre 2004StatutMembreDernière intervention29 décembre 20124 25 janv. 2005 à 16:11
c tout simple qd on clik dessus on met l autre caption
Private Sub Chatactif_Click()
If Chatactif.Caption = "Chat actif" Then 'permet d'interdire le t'chat'
rechercheencours.Enabled = False 'interdit l'ecriture'
Chatactif.Caption = "Chat non actif" 'swap l'etat du bouton'
Else
If Chatactif.Caption = "Chat non actif" Then 'permet d'interdire le t'chat'
rechercheencours.Enabled = True 'accepte l'ecriture'
Chatactif.Caption = "Chat actif" 'swap l'eat du bouton'
End If
End If
End Sub