PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
transparent labels
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
transparent labels
![]() |
transparent labels |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Is there a way to create labels that allow the background image to show
through, true transparency? I want to add a label to a picturebox image but not show the label boundaries, blocking out the image. -E |
|
|
|
#2 |
|
Guest
Posts: n/a
|
On 11 Abr, 14:41, "E Lee" <e...@pinson3.com> wrote:
> Is there a way to create labels that allow the background image to show > through, true transparency? *I want to add a label to a picturebox imagebut > not show the label boundaries, blocking out the image. > > -E Hi, yes it is? Code below: //Add EventHanler to your picture1 Paint private void Picture1_Paint(object sender, PaintEventArgs e) { StringFormat sfLeft = new StringFormat(); sfLeft.Alignment = StringAlignment.Near; sfLeft.LineAlignment = StringAlignment.Center; Rectangle drawBounds = Picture1.Bounds; drawBounds.X -= Picture1.Location.X - 2; drawBounds.Y -= Picture1.Location.Y; e.Graphics.DrawString("TEXT TO WRITE", new Font("Tahoma", 9, FontStyle.Regular), new SolidBrush(Color.White), drawBounds, sfLeft); } best Regards, Armando Rocha Portugal |
|
|
|
#3 |
|
Guest
Posts: n/a
|
I wrote an article about something like this
http://christian-helle.blogspot.com...s-in-netcf.html You might want to search the archives as well http://groups.google.com/group/micr...e92ca7beee4c4f8 -- Regards, Christian Resma Helle http://christian-helle.blogspot.com "E Lee" <elee@pinson3.com> wrote in message news:uxLL4m9mIHA.3532@TK2MSFTNGP05.phx.gbl... > Is there a way to create labels that allow the background image to show > through, true transparency? I want to add a label to a picturebox image > but not show the label boundaries, blocking out the image. > > -E > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

