473,406 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

C# button with *.png image over another button with *.png image not showing correctly

Hello all.

I have what I hope is an easy problem, but I am not sure.

What I have is a bunch of buttons with their images (not background images, but images) set to *.png files with transparency. If I have a button over the form's background, it displays perfectly. I get the transparency and everything to show.

The problem comes when 2 buttons overlap. The part of the *.png that should be transparent to what is underneath it, seems to render as if the form's background was directly below it. Then the second button, is chopped off. If it is below for example a completely transparent png, it will be hidden and not show at all.

What I need to do is be able to voerlap these buttons. I can change them to PictureBoxes if that is what I need to, but that would require a fair bit of code changes right now, so I would like to try and feel out some answers to see if that is possible.

Is there some workaround to this? Is this normal? Is there some option I can set to have it not do this?

Thankyou in advance for all your help.
Jun 8 '07 #1
3 3497
kenobewan
4,871 Expert 4TB
I believe this is a design issue but may be coded around by making the completely transparent image visible = false. HTH.
Jun 9 '07 #2
I believe this is a design issue but may be coded around by making the completely transparent image visible = false. HTH.
Well in normal use, there wont be a fully transparent image. I was just using one to try out what was going wrong.

So you believe this is the way C# is coded? No other workaround? Perhaps draw everything to some grpahic layer make that the background, and then draw transparent button overlays?
Jun 9 '07 #3
booies
2
Hey NVerngunst. I'm having a similar problem with .pngs. In fact its exactly the same. Did you ever find a way around it?
Jun 27 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Terrance | last post by:
Good Afternoon: I was hoping if someone could share some light on a problem that I'm facing. When I create a Visual Basic.Net program and I use the XP style for my Window Forms and buttons; if I...
1
by: Lee David | last post by:
I have a page that has menu buttons on it. There are regular, over and down images that I swap. The problem is I can't seem to get the buttons to stick. So if I click the "News" image, that page...
3
by: Chris L | last post by:
Greetings, I searched for this possibility without finding very much. It might be too simple ? In the simplest of terms, I need to place a button on a form, and have it advance the number in a...
10
by: mattmerc | last post by:
Hi all, I posted this about a week back with no response so I want to try again. I have a weird questions in regards to working with sql image data types. I know how to take the image type and...
8
by: Cardman | last post by:
I am hopeful that someone can quickly solve my image alignment issue when things are just not going right and where my attempts to solve this alignment issue have all failed. First of all take a...
1
by: Phil_Cam | last post by:
Hello All On a webpage I have a standard paypal image button for purchases. I am trying to set it up so that it only shows up or is endabled when text is entered into a textbox and a button is...
0
by: Iain | last post by:
Hi I am using Borland Developer 2006, C# web application. Fairly new to the .net platform and very new to repeaters. I have 2 repeaters on a page, both of which are filled from a database....
4
by: glbdev | last post by:
Hi, I posted this question yesterday but didn't get the answer I needed. I am DESPERATE to get this working so I'm re-posting it because I don't think I worded it correctly. I have a GridView...
12
by: Mads Aggerholm | last post by:
Hello Sirs I hope you can give me a hint to this little problem. The thing is, I have for a lang time enjoyed the comics on www.washintonpost.com, and I allways start the day by going to their...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.