If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

PNG Alpha Blended Form

OK, first, I want to say that I have found several threads for what I am searching for but none of them achieves the result I want. One close but the problem is that the controls in the form are not shown but still answer to mouse events. So here is my question and request:

I would like to set a PNG image as a form with it's alpha channel (Transparency) but see the controls on the form. The one I found was using GDI+, which almost does what I want but I would like to know if it is possible to do this using DirectX if it would solve the hidden controls problem.

Re: PNG Alpha Blended Form

OK, I can see that no-one found a solution, or the post does not seem very interesting so I have posted two examples I have downloaded and tested for some people to work with.

LoadPNG.zip is an example on how to load a PNG image in a PictureBox using GDI+.

PerPixelAlpha.zip is a project example that shows how to use a PNG image as a form. You will see that the problem is that you cannot see the controls in the form but the controls still respond to mouse events.

I need a solution. A form that has the picture and transparency of a given PNG image but that still shows the controls in the form. It's like a mixture of both projects that I need. If I can get the transparency of a PNG image from a PNG image loaded in a PictureBox, I won't need to repaint the actual form. I want to put PNG file effets on a form bu still show the controls I put on it. I am wondering if in DirectX mode, this would be achievable better than using GDI+. Does someone have a solution?

Re: PNG Alpha Blended Form

I am not using VB.NET and I can't use it since I will need to create my whole application completely. I don't want to do that. And, I won't use their VB6 to .Net Project converter because of the mess it does in the code and it doesn't even run after.

As I can also see, I posted the thread in the Visual Basic 6 Formum for a reason. Thanks anyways for the comment.

Re: PNG Alpha Blended Form

I searched the net to add WPF forms to a VB6 app and everything is oriented in the other way like hot to put a vb form in a WPF application. I use Visual Studio 6 (Visual Basic 6). I want to apply a PNG image to a form or PictureBox and see the PNG's transparency effect. That is the main reason of this thread.

Re: PNG Alpha Blended Form

Sorry for the delay.

I once found a project created by someone on the net permitting to use a PNG image as a form with controls on it but I can't find it anymore. I know it is doable in VB6 and I don't want to convert the entire project in Dot Net since the all programs are done in VB6. Can someone help me do this project. I just want an alpha blended form from a PNG image with the controls shown.