473,394 Members | 1,770 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Asynchronous Beep

Hi all,
I have a picture box which blinking each quarter a second. Iwant to Beep() whenever it blinks. I tried the PInvoked Beepfunction, but it blocks the thread. I am sure it is prettysimple, but need to use another thread, but I could notsynchronize the visual and audio parts.
Could you please help me.

Thanks in advance.

--------------------------------
From: Ferhat Akcin

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>tPeDYrcWcki/QllXBaI2Tg==</Id>
Nov 17 '05 #1
2 3760
hi,

you have two options,
1- Use a timer , this is not very exact as you can get th e beep before or
after the imaged changed.

2- Use a timer but in addition to beep change the image too, so you create
two images and assign the needed one to the picturebox and beep at teh same
time.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"Ferhat Akcin via .NET 247" <an*******@dotnet247.com> wrote in message
news:e7**************@TK2MSFTNGP10.phx.gbl...
Hi all,
I have a picture box which blinking each quarter a second. I want to
Beep() whenever it blinks. I tried the PInvoked Beep function, but it blocks
the thread. I am sure it is pretty simple, but need to use another thread,
but I could not synchronize the visual and audio parts.
Could you please help me.

Thanks in advance.

--------------------------------
From: Ferhat Akcin

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>tPeDYrcWcki/QllXBaI2Tg==</Id>
Nov 17 '05 #2
hi,

you have two options,
1- Use a timer , this is not very exact as you can get th e beep before or
after the imaged changed.

2- Use a timer but in addition to beep change the image too, so you create
two images and assign the needed one to the picturebox and beep at teh same
time.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"Ferhat Akcin via .NET 247" <an*******@dotnet247.com> wrote in message
news:e7**************@TK2MSFTNGP10.phx.gbl...
Hi all,
I have a picture box which blinking each quarter a second. I want to
Beep() whenever it blinks. I tried the PInvoked Beep function, but it blocks
the thread. I am sure it is pretty simple, but need to use another thread,
but I could not synchronize the visual and audio parts.
Could you please help me.

Thanks in advance.

--------------------------------
From: Ferhat Akcin

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>tPeDYrcWcki/QllXBaI2Tg==</Id>
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Leo | last post by:
hi there i want python to do a beep. in the docu i found in tkinter the method bell() but the script: import Tkinter Tkinter.bell() gives the error:
3
by: #Hai | last post by:
Hi, I want to throw out a series of 'beep..beep..beep' to the speaker. How to do that ? Thanks
19
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...
8
by: Marcia Gulesian | last post by:
How can I create a beep in javascript (I.E. 5.5 +) ?
0
by: Ferhat Akcin via .NET 247 | last post by:
Hi all, I have a picture box which blinking each quarter a second. Iwant to Beep() whenever it blinks. I tried the PInvoked Beepfunction, but it blocks the thread. I am sure it is prettysimple, but...
4
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()...
4
by: adi | last post by:
Hi My application has many automatic features because it is designed to run without any user interfering. In fact, my app will work on a system without a keyboard or a mouse. Anyway, from time...
4
by: =?Utf-8?B?UmljaA==?= | last post by:
When I press the Enter key in a Textbox I get a beep sound. But when I press the Enter key in a combobox, I don't get the beep sound. Is there a way to suppress the beep? How to do this? ...
5
by: =?Utf-8?B?UmFmYWVs?= | last post by:
I'm studying C# (I've been a VB developer). I'm making some tests and I need to use Console.Beep(), but it doesn't make any sound, no matter if I try it in VS2008 beta or VS2005. Could anybody...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...
0
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
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...

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.