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):
The error message says: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 );
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.




I don't consider myself a C# programmer - yet
Reply With Quote