473,503 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Making a beep

vdraceil
236 New Member
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..
Jul 19 '08 #1
4 1961
debasisdas
8,127 Recognized Expert Expert
JUST WRITER

Beep

in your code for the effect.
Jul 19 '08 #2
Computer Guru
16 New Member
Expand|Select|Wrap|Line Numbers
  1. Beep
  2. MsgBox("Your Message")
Jul 20 '08 #3
!NoItAll
297 Contributor
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
Jul 21 '08 #4
AIProgrammer
28 New Member
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.
Jul 22 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

19
56571
by: Anon Email | last post by:
Hi everyone, Let's see, now. This question is about the capabilities of ANSI C++. I want to write and compile code in ANSI C++ that, when compiled, will make the computer speaker beep; or, at...
2
1576
by: Hi5 | last post by:
Hi, I am working on a project in access 2000, Whilst I already have a table called client and seems to be related with other tables ,I tried making TBL client as lookup too, I ended up having...
2
1806
by: Regnab | last post by:
I've got a YES/NO section of a report I'm making. Depending on certain values, I want to circle either YES or NO. I've got the code working so it'll show or hide the circle, but I can't seem to get...
1
1907
by: Hai Ly Hoang | last post by:
Hi, I want to make a beep (like MS-DOS beep, not a beep from sound-card). How to do that ? Thanks
4
6845
by: Rich | last post by:
Hello, I want to use the Beep() to alert users about certain messages but in my workstation I can't get a sound out of it. But Beep works in VB6. What do I need to do? Sub... .... Beep()...
27
2103
by: CTI | last post by:
I got problems when I want to make a MDE file. The app. got a lack of memory. Bart Access 2003
6
1585
by: stevenrec | last post by:
Done a lot of forum checking, tried several possibilities. Still not getting it to work. Please show me my error! form has several combo boxes storing an integer or nothing (were not activated...
9
3636
by: ApexData | last post by:
My main form has tab-pages. On each tabbed page is a subform control containing a different subform. When a user selects a specific tab and begins to edit a record, I need a way of preventing the...
10
5301
by: Jason | last post by:
I'm making a program that will convert decimal inputs (in this case, in inches) and output a fractional answer. At the moment, I'm only able to output the fractional answer in three parts: A whole...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7348
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7006
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7467
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5592
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
397
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.