M
Mustafa Rabie
hi all,
i know that transparent labels are not supported in netcf. So i added my
text in OnPaint, but actually the text is still not showing.. what am i
doing wrong? here's the OnPaint code:
protected override void OnPaint(PaintEventArgs e)
{
Graphics g = e.Graphics;
System.Drawing.Font f = new Font("Nina",
8,System.Drawing.FontStyle.Regular);
g.DrawString(this.label1.Text, this.label1.Font, new
System.Drawing.SolidBrush(System.Drawing.Color.Red), this.label1.Location.X,
this.label1.Location.Y );
base.OnPaint(e);
}
thanks
Mustafa
i know that transparent labels are not supported in netcf. So i added my
text in OnPaint, but actually the text is still not showing.. what am i
doing wrong? here's the OnPaint code:
protected override void OnPaint(PaintEventArgs e)
{
Graphics g = e.Graphics;
System.Drawing.Font f = new Font("Nina",
8,System.Drawing.FontStyle.Regular);
g.DrawString(this.label1.Text, this.label1.Font, new
System.Drawing.SolidBrush(System.Drawing.Color.Red), this.label1.Location.X,
this.label1.Location.Y );
base.OnPaint(e);
}
thanks
Mustafa