Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2012 > Beginning Visual Basic 2012
Beginning Visual Basic 2012
This is the forum to discuss the Wrox book Beginning Visual Basic 2012 by Bryan Newsome; ISBN: 978-1-118-31181-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning Visual Basic 2012 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 3rd, 2014, 01:24 PM
Registered User
Join Date: Feb 2014
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Audio Resources not playing or listed as member

I have looked at previous threads discussing this but they do not solve my problem. I have an audio file I could play on loading the console app I wrote. I added the .wav file to resources, the Custom Tool Namespace is still My.Resources, if I open the full path and explore to the resource folder the Wav is there (Called "Entrance")

Under the opening Sub I have

My.Computer.Audio.Play(My.Resources.Entrance, AudioPlayMode.Background)
it tells me it is not a member of resources. This is not critical to the application, or even necessary.

As a learning chance I would like to know what I am missing here. Should I create a class to play this audio file, any explanation is appreciated. Solutions would be nice too, however explaining why it is not working would help me more in the future.

Thank you
Old February 3rd, 2014, 03:19 PM
Registered User
Join Date: Feb 2014
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

My.Computer.Audio.Play(My.Resources.Entrance, AudioPlayMode.Background)

Missing Resources1 before entrance.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Class private member and class static member difference ? kafshdoozak BOOK: Beginning Object-Oriented Programming with C# 2 June 30th, 2013 02:05 AM
Tables not listed in intellisense... fullingdale SQL Language 2 April 7th, 2011 10:33 AM
playing audio files in c#.net sumith ASP.NET 1.0 and 1.1 Professional 0 February 7th, 2007 12:14 AM
i looked at apress.com, its not listed kender All Other Wrox Books 9 January 6th, 2007 11:43 AM
India TimeZone not listed deepak.vasudevan Forum and Wrox.com Feedback 0 September 2nd, 2005 02:34 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.