[Year 12 SofDev] Tutorial on information on linking a sound file to a picture.

Bucknell, Chris cbucknell at whitefriars.vic.edu.au
Fri Nov 16 13:53:40 EST 2012


HI all,

Ross is correct the most simple way to play a sound file in VB is with his code or:
My.Computer.Audio.Play("c:\temp\temp.wav")

However these methods will it will only work with wav files.  To play other types of sound files you need to include a COM reference to the windows media player and then interact with it to get the file to play (a reasonable example is at http://www.dreamincode.net/forums/topic/57357-mymusic-player/)

Regards Chris


From: sofdev-bounces at edulists.com.au [mailto:sofdev-bounces at edulists.com.au] On Behalf Of Hafoka Ross
Sent: Friday, 16 November 2012 1:26 PM
To: Year 12 Software Development Teachers' Mailing List
Subject: Re: [Year 12 SofDev] Tutorial on information on linking a sound file to a picture.
Importance: High

Hi Robert,

Attach this code to the picture and edit the path to where the sound file is placed. This code is the exact code that I have used with my Year 10 IT class to link a sound file to a picture.

System.Diagnostics.Process.Start("C:\2012_Loseli\VoiceMessage.wav")

Hope this will help

Regards

Ross Hafoka
IT Teacher
John Paul College
Frankston

From: sofdev-bounces at edulists.com.au<mailto:sofdev-bounces at edulists.com.au> [mailto:sofdev-bounces at edulists.com.au] On Behalf Of Robert Koren
Sent: Friday, 16 November 2012 12:48 PM
To: sofdev at edulists.com.au<mailto:sofdev at edulists.com.au>
Subject: [Year 12 SofDev] Tutorial on information on linking a sound file to a picture.

I was hoping someone would have a tutorial or instructions on how to use VB Express 10 to link a sound file to a picture and have it play when the picture is clicked.

Thanks in advance.

Regards,


Robert Koren
Head of Pasteur House
Head of IT Faculty
(03) 93340031

________________________________

OVERNEWTON ANGLICAN COMMUNITY COLLEGE
T +61 3 9334 0000 W www.overnewton.vic.edu.au<http://www.overnewton.vic.edu.au>

KEILOR CAMPUS 2-30 Overnewton Road Keilor, Victoria, 3036 | F +61 3 9336 1835
TAYLORS LAKES CAMPUS 39 - 57 Robertsons Road Taylors Lakes, Victoria, 3038 | F +61 3 9390 5144

A dual campus, coeducational Prep to Year 12 school. Delivering consistently high academic results in Melbourne's North West for over 25 years.
2012 College Theme | With an Attitude of Gratitude

Consider the environment before choosing to print this email.

This email and any attachments may be confidential. You must not disclose or use the information in this email if you are not the intended recipient. If you have received this email in error, please notify us immediately and delete the email and all copies. The College does not guarantee that this email is virus or error free. The attached files are provided and may only be used on the basis that the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from the use of the attached files, whether caused by the negligence of the sender or not. The content and opinions in this email are not necessarily those of the College.


This email has been processed by SmoothZap - www.smoothwall.net<http://www.smoothwall.net/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.edulists.com.au/pipermail/sofdev/attachments/20121116/cc2c85c3/attachment-0001.html 


More information about the sofdev mailing list