'This example shows you how to calculate the exact maximum playback time of *.v2m files in seconds.'In this example, I have named my music file "Flowers.v2m".'If you search for these music files you can get them e.g. here:
ftp://ftp.untergrund.net/users/Freefall.

'Code usage:

'Start a new Winforms VB 2008 Project.'Set a reference to the V2Duration.dll : "Project" -> "Add reference" -> browse for V2Duration.dll .'Now setup the Import once to avoid too long declarations:

Imports V2Duration.V2Duration

'Note: Put the following lines of code into a Sub!

'Declare a calculation class object:

Dim V2Duration = New V2Duration.V2Duration

'Now I show you 2 options to read a *.v2m music file:'From a path or the Programs Ressources.'Choose the suitable option for your usage!