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..
Making a beep
Collapse
X
-
-
-
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 thatComment
-
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
Comment