all groups > dotnet compact framework > april 2008 >
You're in the

dotnet compact framework

group:

transparent labels


Re: transparent labels rocha.armando@gmail.com
4/11/2008 7:10:03 AM
dotnet compact framework: [quoted text, click to view]

Hi, yes it is?

Code below:
//Add EventHanler to your picture1 Paint

private void Picture1_Paint(object sender, PaintEventArgs e)
{

StringFormat sfLeft =3D new StringFormat();
sfLeft.Alignment =3D StringAlignment.Near;
sfLeft.LineAlignment =3D StringAlignment.Center;
Rectangle drawBounds =3D Picture1.Bounds;
drawBounds.X -=3D Picture1.Location.X - 2;
drawBounds.Y -=3D 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
transparent labels E Lee
4/11/2008 9:41:15 AM
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

Re: transparent labels Christian Resma Helle
4/14/2008 8:42:43 AM
I wrote an article about something like this
http://christian-helle.blogspot.com/2008/01/transparent-controls-in-netcf.html

You might want to search the archives as well
http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/browse_thread/thread/ae92ca7beee4c4f8

--
Regards,
Christian Resma Helle
http://christian-helle.blogspot.com


[quoted text, click to view]
AddThis Social Bookmark Button