Visual Basic - meter sonido en visual basic

Life is soft - evento anual de software empresarial
 
Vista:

meter sonido en visual basic

Publicado por cynthia parra (2 intervenciones) el 11/04/2005 19:17:58
QUISIERA QUE ALGUIEN ME AYUDARA, LO QUE PASA ES QUE NECESITO TERMINAR MI APLICACIONDE TESIS Y TENGO QUE METERLE SONIDO A UN COMMAND BUTTON PARA QUE CADA QUE YO DE CLICK SOBRE EL BOTON EMITA UN SONIDO Y TAMBIEN NECESITO SABER COMO RELACIONAR UNA IMAGEN CON EL COMMAND PARA AL DAR CLICK EMITA EL SONIDO Y SE VOLTEE LA FIGURA.OJALA QUE ALGUIEN ME PUEDA AYUDAR ME HAN DICHO QUE ES MUY FACIL PERO NO HE ENCONTRADO LINEAS DE CODIGO Y ES URGENTISIMO LA OTRA SEMANA TENGO QUE ENTREGAR MI APLICACION Y NO TENGO TERMINADO EL PROGRAMA.GRACIAS
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:meter sonido en visual basic

Publicado por miguel (1042 intervenciones) el 11/04/2005 23:47:26
Para escuchar el sonido debes declarar esta API dentro de un modulo

Public Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _
(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long

Public Const SND_SYNC = &H0
Public Const SND_ASYNC = &H1
Public Const SND_NODEFAULT = &H2
Public Const SND_LOOP = &H8
Public Const SND_NOSTOP = &H10

'En tu formulario
Private Sub cmdSonidio_Click()
PlaySound "C:\Blip.wav"
End Sub

y en cuanto el cambio de imagen lo puedes hacer por medio del control Image que cuando des clic sobre la imagen emita el sonido y cargas otra imagen, pero para esto debes de manejar dos imagenes!!!

SALUDOS!!!

Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar