·  Start ·  Programme ·  Codes ·  Tipps ·  ActiveX ·  Tutorials · 



Sie benötigen eine Form und einen Commandbutton ("Command1"). Die Töne werden über den Systemlautsprecher ausgegeben.

Private Declare Function Beep Lib "kernel32" _
(ByVal dwFreq As Long, ByVal dwDuration As Long) As Long

Private Sub Command1_Click()
    Dim lngTon As Long
    ' Ausgabe in einer Schleife
    For lngTon = 1000 To 0 Step -100
        DoEvents
        Beep lngTon, 100
    Next lngTon
End Sub
Aktualisiert: 12.02.2008, 14:10 Uhr Copyright © 2001 - 2010 by ST-software Navigation zurück  |  Navigation vorwärts  |  Zum Seitenanfang     
Ihre IP: 38.107.191.81 ·  Seite erstellt in: 0.155 Sekunden ·  Dateigröße:  2368 Bytes