|
-
Jun 1st, 2002, 10:54 PM
#1
Thread Starter
New Member
-
Jun 2nd, 2002, 02:52 AM
#2
PowerPoster
You want to make the label transparent and still would be able to see through it? Two different things. When you set the backcolor to transparent, can't you see through it?
-
Jun 2nd, 2002, 03:33 AM
#3
No, I've tried that and it doesnt work. I think it no longer supports such a thing
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Jun 2nd, 2002, 10:13 PM
#4
Thread Starter
New Member
No Way man,,,, there must be some way to do it.....any body can help????
-
Jun 2nd, 2002, 10:59 PM
#5
Addicted Member
Seems hard to believe that there is not a property for this, but I don't see it.
If you want to change your labels background color to match the containers background color, you could put code to do this in the containers BackColorChanged event.
If you just want text that you can see behind, you could draw it with GDI+.
Either one of those options are easy to do. I hope one of them will work for you.
That which does not kill us, only makes us stronger. 
-
Jun 4th, 2002, 02:02 AM
#6
Straight out of the Help that comes with Visual Studio .NET:
In Visual Basic 6.0, the BackStyle property of the Label control determined whether the label had a transparent background. Setting the BackStyle property to 0 – Transparent allowed any background image or other controls to show through the label.
In Visual Basic .NET, the BackStyle property no longer exists, and the transparency behavior is slightly different. To emulate the transparent behavior in Visual Basic .NET, set the BackColor property to System.Drawing.Color.Transparent. This will allow the background image to show through, but it will not be transparent in regard to other controls.
-
Jun 4th, 2002, 12:08 PM
#7
-
Jun 4th, 2002, 02:52 PM
#8
PowerPoster
Originally posted by Tygur
Straight out of the Help that comes with Visual Studio .NET:
That's exactly I was talking about. I assumed that he was setting to colour to transparent not the backstyle to transparent because, as MSDN says, it doesn't exist anymore.
-
Jun 4th, 2002, 02:55 PM
#9
PowerPoster
Actually you can change it to opaque or transparent. In previous versions, you could choose your backcolour and then it would be drawn only if the backstyle was opaque. But in new one, you change to opaque or transparent using only the backcolour property. If you click on "Web Colors" or some tab like that in your backcolour property, you'll find the transparent "colour".
-
Jun 4th, 2002, 04:53 PM
#10
-
Jun 4th, 2002, 05:14 PM
#11
PowerPoster
I can't try it myself because I haven't installed VB .NET yet but I am sure it supports transparent colour if it doesn't give you any error when you try to set the backcolor to transparent.
-
Jun 4th, 2002, 06:57 PM
#12
Addicted Member
I tried it and it works great.
Set the Background color to Transparent - (found under the Web colors.)
I guess the problem lies with the picturebox.
-
Jun 4th, 2002, 10:10 PM
#13
Originally posted by BryanJ
I tried it and it works great.
Set the Background color to Transparent - (found under the Web colors.)
I guess the problem lies with the picturebox.
well yeah I think you're right, it's picturebox's problemmo
So basically it aint working with pic boxes? doesnt make that much senssssse
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Jun 4th, 2002, 10:15 PM
#14
Originally posted by MrPolite
Either I'm acting really dumb or my eyes cant see right 
I have a label over a picturebox. I changed the BGcolor of the lable to Transparent, but still when I run it, the label is covering the pictureBox and it's not trasparent
what am I doing wrong
I don't think you people read my previous quote right. Have another look. Check out the bolded part, in particular:
In Visual Basic .NET, the BackStyle property no longer exists, and the transparency behavior is slightly different. To emulate the transparent behavior in Visual Basic .NET, set the BackColor property to System.Drawing.Color.Transparent. This will allow the background image to show through, but it will not be transparent in regard to other controls.
-
Jun 4th, 2002, 10:30 PM
#15
Addicted Member
If you just want simple text, I would draw it on manually with GDI+.
That which does not kill us, only makes us stronger. 
-
Jun 4th, 2002, 10:36 PM
#16
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Jun 5th, 2002, 09:03 AM
#17
Addicted Member
Yea, you can write text on a control. If this is not what you are looking for, sorry. It was just a suggestion, I was only trying to help.
That which does not kill us, only makes us stronger. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|