Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
VB.NET
Windows Forms
Multiple button transparent to each picturebox in one form
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="jmcilhinney, post: 166543, member: 641"] Transparency in Windows Forms is a tricky thing. When you set the BackColor of a control to Transparent, the control itself does not actually become transparent. What actually happens is that the control creates an image of its Parent behind it and displays that, even if its Parent is not what is directly underneath it. What that means for a PictureBox showing through a Button is that only one PictureBox can be shown through each Button and that Button must be wholly within the bounds of that PictureBox. So, what exactly are you asking for? Are you saying that you want a Button to be able to overlap multiple PictureBoxes? If so then you're out of luck. If what you saying is that you have multiple Buttons and you want each of them to be able to show a PictureBox through them then you can do that easily enough. If you already have my code for doing it with one Button then you have all you need. You simply do the same thing multiple times, once for each Button. [/QUOTE]
Insert quotes…
Verification
Post reply
VB.NET
Windows Forms
Multiple button transparent to each picturebox in one form
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom