A voir également:
- Problème avec la msgbox
- Msgbox range ✓ - Forum Excel
- Msgbox batch ✓ - Forum Autoit / batch
- (Vbs) msgbox perso - Forum VB / VBA
- Vba msgbox bouton personnalisé ✓ - Forum Excel
- Vba msgbox avec saisie - Forum VB / VBA
1 réponse
if (Application->MessageBox(
"Do you hear any music now or any sound at all?",
"CD Player Instructions",
MB_YESNOCANCEL | MB_ICONQUESTION) == IDNO)
Panel1->Caption = "We will stop these tests now. Let the machine rest!";
else .....
et tu continues.
c'est un extrait d'un code C++ Builder, la syntaxe peu etre differente selon votre langage au compilateur.
l'essentiel est de récuperer la valeur de retour et de la comparer a (OK,YES,NO,CANCEL,......)
"Do you hear any music now or any sound at all?",
"CD Player Instructions",
MB_YESNOCANCEL | MB_ICONQUESTION) == IDNO)
Panel1->Caption = "We will stop these tests now. Let the machine rest!";
else .....
et tu continues.
c'est un extrait d'un code C++ Builder, la syntaxe peu etre differente selon votre langage au compilateur.
l'essentiel est de récuperer la valeur de retour et de la comparer a (OK,YES,NO,CANCEL,......)