Asynchronous Beep

  • Thread starter Thread starter Ferhat Akcin via .NET 247
  • Start date Start date
F

Ferhat Akcin via .NET 247

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.
 
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




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.
 
Back
Top