home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form PlayBeep
- Caption = "PlayBeep"
- ClientHeight = 3750
- ClientLeft = 1140
- ClientTop = 1470
- ClientWidth = 2655
- LinkTopic = "PlayWave"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 3750
- ScaleWidth = 2655
- Begin VB.OptionButton SndOption
- Caption = "System Exclamation"
- Height = 375
- Index = 3
- Left = 240
- TabIndex = 4
- Top = 1680
- Width = 2055
- End
- Begin VB.OptionButton SndOption
- Caption = "System Question"
- Height = 375
- Index = 2
- Left = 240
- TabIndex = 3
- Top = 1200
- Width = 2055
- End
- Begin VB.OptionButton SndOption
- Caption = "System Asterisk"
- Height = 375
- Index = 1
- Left = 240
- TabIndex = 2
- Top = 720
- Width = 2055
- End
- Begin VB.OptionButton SndOption
- Caption = "System Default"
- Height = 375
- Index = 0
- Left = 240
- TabIndex = 1
- Top = 240
- Value = -1 'True
- Width = 2055
- End
- Begin VB.CommandButton Play
- Caption = "Play Beep"
- Height = 735
- Left = 480
- TabIndex = 0
- Top = 2880
- Width = 1695
- End
- Attribute VB_Name = "PlayBeep"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Declare Function MessageBeep Lib "User32" _
- (ByVal alertLevel As Integer) As Integer
- Const MB_OK = 0
- Const MB_ICONQUESTION = &H30
- Const MB_ICONASTERISK = &H40
- Const MB_ICONEXCLAMATION = &H20
- Private Sub Play_Click()
- If SndOption(0) = -1 Then MessageBeep (MB_OK)
- If SndOption(1) = -1 Then MessageBeep (MB_ICONASTERISK)
- If SndOption(2) = -1 Then MessageBeep (MB_ICONQUESTION)
- If SndOption(3) = -1 Then MessageBeep (MB_ICONEXCLAMATION)
- End Sub
-