1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| Option Explicit
Private Sub MessageBox(strMessage As String, intSecondsToWait As Integer, strTitle As String, btnTypeAndIcon As Integer)
Dim wShell As Object
Set wShell = CreateObject("Wscript.Shell")
wShell.Popup strMessage, intSecondsToWait, strTitle, btnTypeAndIcon
Set wShell = Nothing
End Sub
Private Sub Command1_Click()
MessageBox "A que coucou", 1, "Un popup", 64
MessageBox "A que coucou encor une fois", 1, "Un popup", 64
MessageBox "A que re re coucou", 1, "Un popup", 64
End Sub
Private Sub Command2_Click()
MessageBox "A que pas du tout coucou (durant 10 Scs)", 10, "Un popup", 64
MessageBox "Cela a l'air d'être bon, NON ?", 1, "Un popup", 64
End Sub |
Partager