Ladies and Gentlemen,
Your help please.
I'm currently converting a C# program into VB.NET. I can't get hold of the author and I don't know any C# programmers, and now I'm stuck! I don't consider myself a C# programmer - yet

The problem lies when I run the C# code. It builds with no errors However, when I run the C# code it grumbles at this line (see below):


Code:
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
backGroundColor = Color.Blue;
bitmap = new  Bitmap("MyPointer.bmp"); <- *** THIS LINE *** :confused:
bitmap.MakeTransparent( Color.Black );
The error message says:
An unhandled exception of type 'System.ArgumentException' occurred in system.drawing.dll
Additional information: Invalid parameter used.


Any help is gratefully received

Kerrang

PS
MyPointer is a small bitmap on a User Control.
There are two references one to Microsoft.DirectX and one to Microsoft.DirectX.DirectDraw.