Hi All
In my new app that i am doing, I have a Panel with a Picturebox ( Docked within it ) with a Label on top of it
Now I have had this issue before, and too be honest i cant remember if i found a solution to it or not :?
The Label's BackColor will take on the color of the forms Background, and I want to make it Transparent, so that when you Drag the Text around the Area it does not show the forms background color, if that makes sense.
Like in this Pic Below
The Label has a Transparent background in Properties
I had coded it so that as you typed, it told the Label to be Transparent ( but that does not address the issue )
I dont really want to change the way the app works as i have got it all working great wahooo; But all but this issue with the Label Background.
Has anyone come across this before and if you did, How did you rectify it ?
Chris
Re: How to Get Transparent Label Background??
Posted: Sun Aug 01, 2010 10:05 am
by upperdrag
right right, if i could remember i have this problem before but i tried this method,,
make the panel's background image to your desired image and add another picture box over the initial image (the panel's backgroud image) then make the label's background settings as transparent.
did it work o.o?
Re: How to Get Transparent Label Background??
Posted: Sun Aug 01, 2010 10:16 am
by hungryhounduk
right right, if i could remember i have this problem before but i tried this method,,
make the panel's background image to your desired image and add another picture box over the initial image (the panel's backgroud image) then make the label's background settings as transparent.
did it work o.o?
Hi Upperdrag
I tried that above and its still showing the forms Background color, I dont know what the answer is
Thanks for your Help tho cooll;
Chris
Re: How to Get Transparent Label Background??
Posted: Sun Aug 01, 2010 11:28 am
by mandai
Try using the Paint event to draw a string directly to that area.
Re: How to Get Transparent Label Background??
Posted: Sun Aug 01, 2010 12:02 pm
by Lewis
Hungry hound, Set the image of the button as the background image of your panel and set the label's property to transparent and it should fix it.
Re: How to Get Transparent Label Background??
Posted: Sun Aug 01, 2010 4:20 pm
by hungryhounduk
Try using the Paint event to draw a string directly to that area.
Hi Mandai
ok i will give that a go cooll;
Set the image of the button as the background image of your panel and set the label's property to transparent and it should fix it
Hi Lewis
Yes that does work, But if i change the Button then it shows the label backcolor :?
Thanks for the Help tho cooll;
Chris
Re: How to Get Transparent Label Background??
Posted: Sun Aug 01, 2010 4:30 pm
by Lewis
Well when you change the button are you using the form background as the button when you change it, you might also need to make it transparent after changing the button
Re: How to Get Transparent Label Background??
Posted: Sun Aug 01, 2010 5:05 pm
by CodenStuff
Hello hungryhounduk,
I thought this was working?. In the button beast demo I downloaded it seems to work fine when adding text and moving it around, stays transparent :?
Or are you not on about button beast?
Re: How to Get Transparent Label Background??
Posted: Sun Aug 01, 2010 8:40 pm
by hungryhounduk
I thought this was working?. In the button beast demo I downloaded it seems to work fine when adding text and moving it around, stays transparent
Or are you not on about button beast?
Hi Codenstuff
Yes its Button Beast, but a new version that i am working on, and it uses a Picturebox to add the Images from the Computer, and the buttons are imported into a Panel.
Its probably the Picturebox i have added for the Images that is giving the problem, as i remember way back i did have the same problem, and changed it to a Panel.
But i have coded it all now and i dont really want to go through the whole lot of code changing the Picturebox to a Panel..
But then again I might just have to do that ;)
Chris
Re: How to Get Transparent Label Background??
Posted: Thu Aug 05, 2010 10:56 am
by Harlem9191
Transparency isn't really supported in vb.net :/
There are loads of articles somewhere on google explaining why.