I'm using the following code to use an embedded image and set it as the background of my form. I'm also programatically setting the TransparencyKey so some of the form will be transparent. The end result should show a form that I've drawn to the user in place of the standard squared off form.
This code works perfect in 2003, but in 2005, the color that I want to be transparant is transparent, but then I see the Grey background that is the BackColor of the form itself.
Dim tmpBMP As New Bitmap(executing_assembly.GetManifestResourceStream(my_namespace + ".NewProgress.gif"))
tmpBMP.MakeTransparent(tmpBMP.GetPixel(1, 1))
Me.BackgroundImage = tmpBMP
Me.TransparencyKey = tmpBMP.GetPixel(1, 1)
Any suggestions would be greatly appreciated!
--
James
This code works perfect in 2003, but in 2005, the color that I want to be transparant is transparent, but then I see the Grey background that is the BackColor of the form itself.
Dim tmpBMP As New Bitmap(executing_assembly.GetManifestResourceStream(my_namespace + ".NewProgress.gif"))
tmpBMP.MakeTransparent(tmpBMP.GetPixel(1, 1))
Me.BackgroundImage = tmpBMP
Me.TransparencyKey = tmpBMP.GetPixel(1, 1)
Any suggestions would be greatly appreciated!
--
James