label text over

atesh

Active member
Joined
Aug 2, 2003
Messages
41
Location
Washington State, USA
somebody please explain to me how to do this: all i want is to have some text appear over the top of several labels in my form.
for an example: look at the attached image. I want the red Text to appear over the labels but I dont want the grey background. Its driving me crazy trying to accomplish this so a little guidance is greatly appreciated.
 

Attachments

Id use an invisible label which I set Visible = true/false depending to show/hide text. Making the label have a transparent background (isnt that the default?) should remove the gray area.
 
Instead of using Labels in the first place, you could draw the
text on Form manually in its Paint event. Youd have much more
control over painting them, and then you could paint the red
text without the ugly label background.
 
No, I think the stuff in OnPaint gets done last, but when this sort of thing occurs.. just try it?

Pete
 
If you do what Bucky said, youll want to avoid using labels at all; use the FillRectangle method of the graphics object (e.Graphics in the Paint event) to paint the solid colored backgrounds, and then the [d]DrawString[/b] method to draw the text.
 
Back
Top