All'interno del proprio database è utile poter visualizzare dei messaggi di avviso, di informazione, ecc. a seconda dell'operazione che si vuole eseguire oppure che si è eseguita.
Esistono diversi tipi di messaggi di avviso che all'interno del codice Visual Basic si chiamano MsgBox
vbOKOnly
vbOKCancel
vbAbortRetryIgnore
vbYesNoCancel
vbYesNo
vbRetryCancel
vbCritical
vbQuestion
vbExclamation
vbInformation
Download Project
Vedi anche personalizzazione delle MsgBox
Vedi anche interazione con le MsgBox
Esistono diversi tipi di messaggi di avviso che all'interno del codice Visual Basic si chiamano MsgBox
- vbOKOnly - Visualizza solo il pulsante OK
- vbOKCancel - Visualizza i pulsanti OK e Annulla
- vbAbortRetryIgnore - Visualizza i pulsanti Termina, Riprova, e Ignora
- vbYesNoCancel - Visualizza i pulsanti Sì, No e Annulla
- vbYesNo - Visualizza i pulsanti Sì e No
- vbRetryCancel - Visualizza i pulsanti Riprova e Annulla
- vbCritical - Visualizza l'icona di messaggio critico
- vbQuestion - Visualizza l'icona di richiesta di avviso
- vbExclamation - Visualizza l'icona di messaggio di avviso
- vbInformation - Visualizza l'icona di messaggio di informazione
vbOKOnly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub bn_avviso_Click() | |
MsgBox "Testo del messaggio", vbOKOnly, "Titolo della finestra" | |
End Sub |
vbOKCancel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub bn_avviso_Click() | |
MsgBox "Testo del messaggio", vbOKCancel, "Titolo della finestra" | |
End Sub |
vbAbortRetryIgnore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub bn_avviso_Click() | |
MsgBox "Testo del messaggio", vbAbortRetryIgnore, "Titolo della finestra" | |
End Sub |
vbYesNoCancel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub bn_avviso_Click() | |
MsgBox "Testo del messaggio", vbYesNoCancel, "Titolo della finestra" | |
End Sub |
vbYesNo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub bn_avviso_Click() | |
MsgBox "Testo del messaggio", vbYesNo, "Titolo della finestra" | |
End Sub |
vbRetryCancel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub bn_avviso_Click() | |
MsgBox "Testo del messaggio", vbRetryCancel, "Titolo della finestra" | |
End Sub |
vbCritical
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub bn_avviso_Click() | |
MsgBox "Testo del messaggio", vbCritical, "Titolo della finestra" | |
End Sub |
vbQuestion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub bn_avviso_Click() | |
MsgBox "Testo del messaggio", vbQuestion, "Titolo della finestra" | |
End Sub |
vbExclamation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub bn_avviso_Click() | |
MsgBox "Testo del messaggio", vbExclamation, "Titolo della finestra" | |
End Sub |
vbInformation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub bn_avviso_Click() | |
MsgBox "Testo del messaggio", vbInformation, "Titolo della finestra" | |
End Sub |
Download Project

Vedi anche personalizzazione delle MsgBox
Vedi anche interazione con le MsgBox
Commenti
Posta un commento