I found some code on the net that is supposed to convert a BMP file into a AVI file.

http://www.adp-gmbh.ch/csharp/avi/write_avi.html

The example is in C# so i converted it using a C# to VB.NET converter and fixed a few of the conversion bugs. The code executes but fails on the line 'Throw New AviException("error for AVIFileOpen")' saying 'AVI exception unhandled'. Perhaps someone could fix the code or tell me what i have done wrong.

Code supplied in next post due to size restriction on forum posts: