M
MikeY
Can anyhow direct me on how to make text trasnparent. The Text is loctated
in my custom buttons. A Sample of my code is below.
Font fn = new Font("Tahoma",8, System.Drawing.FontStyle.Bold);
string str= "Sauteed Spinach & Bacon";
StringFormat sf=(StringFormat)StringFormat.GenericTypographic.Clone();
sf.Alignment=StringAlignment.Center;
sf.LineAlignment=StringAlignment.Center;
sf.Trimming=StringTrimming.EllipsisWord;
myGraphics.DrawString(str, fn, Brushes.Black,new
RectangleF(5,5,this.ClientRectangle.Width-15,this.ClientRectangle.Height-10),sf);
this.Region = new Region(myGraphicsPath);
fn.Dispose();
Thank you all in advance
MikeY
in my custom buttons. A Sample of my code is below.
Font fn = new Font("Tahoma",8, System.Drawing.FontStyle.Bold);
string str= "Sauteed Spinach & Bacon";
StringFormat sf=(StringFormat)StringFormat.GenericTypographic.Clone();
sf.Alignment=StringAlignment.Center;
sf.LineAlignment=StringAlignment.Center;
sf.Trimming=StringTrimming.EllipsisWord;
myGraphics.DrawString(str, fn, Brushes.Black,new
RectangleF(5,5,this.ClientRectangle.Width-15,this.ClientRectangle.Height-10),sf);
this.Region = new Region(myGraphicsPath);
fn.Dispose();
Thank you all in advance
MikeY