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..
4 1966
JUST WRITER
Beep
in your code for the effect.
- Beep
-
MsgBox("Your Message")
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
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.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 least, SHOULD make the computer
speaker beep. I know that whether the computer speaker actually beeps
or not is largely dependent on the OS I'm using. But I'm not so much
concerned about that (at this stage). I just want to know if ANSI C++...
|
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 another table called
Client_1,The question is:
1- How it created?
2- this Why is this table in relationships view and not anywhere else?
3- Is it the same table as client?
4-can I remove One of them?
|
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 the circle
(which I drew in Adobe Photoshop because I want the handwriting look)
to be transparent (ie show the Yes or the No in the middle of it). I've
tried right clicking and setting background to transparent but still no
luck.
The thing...
|
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
|
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()
For i = 0 to 100: Beep(): Next
| |
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
|
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 depending on another combo box)
want to save to table "joborder" several numeric fields (long integer)
keep getting error 3421 "data type conversion error"
|
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 user from
clicking on another Tab. I don't want to make the other tabs
invisible.
I tried setting the subForm so that the user is in Me.Modal=True
during the edit, but when this happens - everything becomes modal (ie
the MainForm/Subform),...
|
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 number text box, a
numerator text box, and a denominator text box. I realize that this is
probably the closest I'll get to having fractions displayed in VB, so that's
no big deal. I'm able to simplify most numbers with some code I've written,...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |