Click here to Skip to main content
15,904,652 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have encountered a problem regarding transparency when i try to put controls close together.

I have a small cluster of buttons in a user control however i cannot arrange them in the correct place without each buttons background being painted over another.

I require the buttons backgrounds to overlap and not hide the one behind it.

Does anyone have an idea as to how this can be done?

Edit--->

After looking the links it became apparent that this is the correct answer for a user control , however buttons were unsuccessful when implementing this method, does anyone know why a button will not draw without a back color?

Thanks again George
Posted
Updated 24-Jan-11 1:24am
v2

1 solution

 
Share this answer
 
Comments
grwithey 24-Jan-11 6:35am    
I have had a look at the first link and built a sample app, this method works when i create a user control, however if i create a button the background is still present when they overlap. I suppose i should have asked if buttons can be overlapped but i did not realise there was a difference between the two when it comes to this.
grwithey 24-Jan-11 7:21am    
Thanks for the links, i have now tried all of the links, however there is something about a button which is stopping it from being overlapped by another. I thought it was the double buffer property but the problem still persists so will look again.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900