If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
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.

Tranparent color...

I found a way to make a color transparent for any controls in a form. The problem is that you can see through the form and click through it. I want to know how to make a color transparent in a control so that I can see what's behind the control in the form. I have searched A LOT on google and nothing. I would really love to know how to do this.

Re: Tranparent color...

OK, maybe I was not clear enough. Here is what I want to to. I want to put a picture box over a text box and set a specific background color to the PictureBox which will be transparent. That means, if I apply a picture to the picture box, I will see the image but not the picture box's backcolor. I will see the texte box behind too or what ever other controls that could be hidden behind.

Here is the code I found to make a color totally tranparent but that is NOT what I want. I want to see the contents of the form behind the control NOT through the form itself.

Re: Tranparent color...

I dont want the complete form to be alpha blended, I know how to do that. I want a picture box's Background to be totally transparent to see any controls hidden behind it. I still want to see the borders and the picture if I added one. Here is what I want.

Re: Tranparent color...

As I said above, It does not work when changing Me.hWnd to Picture1.hWnd. See attachment.

And besides, you will see that when you alpha blend a form, the whole contents of the form alpha blends itself, even the title bar. What I want to be transparent is the background only, not the whole container and its contents. See the example code I posted a bit earlier in this thread. It makes any color of the form totally transparent, that is the effect I want but I want to see behind the PictureBox not through the form, see images above fo example. I've tried with the Picture1.hWnd methode but it does not work.

Re: Tranparent color...

Nothing to do with that, still the same examples with a semi or completely transparent form. I am not searching for a user control with a transparent background, I want to do what I mentionned above! I want to put a color on a form totally transparent. See pictures attached, it is self explanatory.

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.