Click here to Skip to main content
11,720,321 members (74,315 online)
Click here to Skip to main content
Add your own
alternative version

VB.NET Wav file graphical viewer control

, 22 Mar 2005 73.8K 2.4K 30
A control to produce a graphical display of any 16bit PCM Wav file.
Option Strict
Option Explicit

'   MediaException class
'     written in VB.NET                          Version: 1.0
'     by The KPD-Team                            Date: 2002/01/16
'     Copyright � 2002                           Comments to:
'                                                URL:
'  You are free to use this class file in your own applications,
'  but you are expressly forbidden from selling or otherwise
'  distributing this code as source without prior written consent.
'  This includes both posting samples on a web site or otherwise
'  reproducing it in text or html format.
'  Although much care has gone into the programming of this class
'  file, The KPD-Team does not accept any responsibility for damage
'  caused by possible errors in this class and/or by misuse of this
'  class.

Imports System

'/// <summary>
'/// The exception that is thrown when an error occurs while opening and/or playing a WAVE file.
'/// </summary>
Public Class MediaException
Inherits Exception
	'/// <summary>Constructs a new MediaException object.</summary>
	'/// <param name="Message">Specifies the error message.</param>
	Public Sub New(Message as String)
	End Sub
	'/// <summary>Returns a string representation of this object.</summary>	
	'/// <returns>A string representation of this MediaException.</returns>
	Public Overrides Function ToString() as String
		Return "MediaException: " & MyBase.Message & " " & MyBase.StackTrace
	End Function
End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Web Developer
United Kingdom United Kingdom
Having done a four year Electronic Engineering Undergraduate course at the University of Warwick, I have now moved on to doing a PhD at the same place.

I am currently envolved in the use of signal processing in watermarking for copyright control.

I have always had a knack of picking up different programming languages quite easily but have not done much serious programming untill now.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150901.1 | Last Updated 22 Mar 2005
Article Copyright 2005 by Quenchmaster
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid