Making a beep

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vdraceil
    New Member
    • Jul 2007
    • 236

    Making a beep

    Can anyone just help me making a beep sound while displaying a msgbox(warning or error details)??i'm using vb6.0....there is a func called 'Beep' but i dont know how to use it!-i found it in the Object Browser..
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    JUST WRITER

    Beep

    in your code for the effect.

    Comment

    • Computer Guru
      New Member
      • Mar 2008
      • 16

      #3
      Code:
      Beep
      MsgBox("Your Message")

      Comment

      • !NoItAll
        Contributor
        • May 2006
        • 297

        #4
        Unless you want to force the sound you do no need to do this. Windows will play the appropriate sound depending upon the icon you set for the msgbox. The sounds are set up under the control panel on the user PC and are set with certain defaults. For example if you set the msgbox to vbcritical you will get the sound associated with that, or you can set it to vbquestion and get the one for that.

        Msgbox "This is a critical message box", vbokonly or vbcritical

        If the users have turned off sounds then they want the sound off and you should honor that

        Comment

        • AIProgrammer
          New Member
          • Jul 2008
          • 28

          #5
          Hi,
          Another option is to go in for some API work, if you are into finding varities on 'beeps'. You will find all the details in MSDN. I don't remember which function, but there are excellent search functionallty built-in. I beleive that hardly a few people would remember the exact 'type signature' of the functions.

          Try them. One more thing : the API functions exist as DLL's, so you need to se also : the Declare command. This too you will find in MSDN. I believe it has 8 or 9 parameters. (most probably).

          Bye.

          Comment

          Working...