I set the back color on a label to transparent and it's not transparent?
Attachment 99245
Printable View
I set the back color on a label to transparent and it's not transparent?
Attachment 99245
Why is this in General Developer? This is obviously not a general question. It's a very specific question so it belongs in a specific forum. What language are you using and what type of application are you creating?
I'm sorry, it seemed pretty general. Nothing too hard? I thought this is where it should go... If not, someone move it to the correct place where it belongs please... But how would I make it transparent to the color it's actually on? Which is a picturebox.
Let me tell you something that I hate. I hate it when someone asks for help and I decide that I will take the time and make the effort to help them but, in order to do so, I need more information so I ask a question or two and the person who originally asked for help simply ignores the questions. You say:Well, how exactly are we supposed to know where it belongs? JB and I both asked you questions and we asked them for a reason. If you want complete strangers to volunteer their time to help you then it is incumbent upon you to answer questions when asked.Quote:
someone move it to the correct place where it belongs please
That's one of the limitations of WinForms, the transparency is always that of the form, not whatever control is underneath it.
That being said, you have two options: #1 instead of having the PictureBox on the form, you could use the Form's Paint event to paint whatever is in the PictureBox directly on the form or #2 you could upgrade it to WPF where it has this kind of stuff inherently built in.
As for the thread, you know this is a .Net specific issue, so why not post it in one of the .Net specific subforum? Maybe the VisualBasic.Net or C# area?
We can't really move it yet, because we don't know which language you are using, so don't know which forum would be right... I would guess at some kind of VB, but there are many different versions of it (which is why we have multiple forums for them).
If you let us know, I'll move your threads to the appropriate place.
Transparency is always that of the parent control. If this is indeed WinForms, which is likely but not guaranteed, and the desire is for the PictureBox to "show through" the Label then the Label needs to be a child of the PictureBox rather than the form. That can't be accomplished in the designer but it's very easy to write code to do it.
I'm pretty sure I'm using C++ :)
Maybe you could post back when you're absolutely sure. It worries me greatly that anyone could write code and not know what language it is but, if you really don't know and can't find out, post a bit of it and then we can probably work it out. If it is C++, is it C++/CLI, i.e. C++ targeting the .NET Framework, or is it unmanaged C++? What tool(s) are you using? It doesn't take much effort to paint a clear picture.
Okay, let me try to rephrase everything.
I'm using C++.
I'm using Microsoft Visual Studio 2012 Ultimate.
I'm using the template Windows Forums Application.
What I'm trying to do is very complicated to explain and I'm trying to Google as much stuff as possible so I don't bother you guys.
I'm going to college about C++ and more (not yet though). Most likely Java too. Then HTML & CSS. Maybe more. But for now, I basically don't know anything about C++. I want to at least have some knowledge of it before I do go to school for it, so I'm not completely dumbfounded of it.
Thread moved from the 'General Developer' forum to the 'C and C++' forum.