Hi there,

I'm a little rookie in windows mobile programming, in this case WM6 pro (.NET Compact Framework 3.5)  VISUAL C#, and I'm needing some help please.

I need to create a dynamic label with the possibility of update its value, the idea is to have a counter associated to this label. I also need to have a background image, so this label needs to have a transparent background.

I have made some tries but still have no acceptable solution Sad :

-I tried to define the label directly from the properties, with transparent background, but didn't work (the background color of the label is always in color of the "Form");

-I tried to use the "DrawString" function and this way I can achieve a transparent background, the problem is that this way I can't have a dynamic label, I only have a static text printed on screen. I though in a solution which was deleting the text and then rewrite it but I think this isn't a good way to solve it;

[code]

private void pictureBox1_Paint_1(object sender, PaintEventArgs e)
 {
       my_label texto_modo;

       texto_modo = new my_label("RRunner", new Font("Tahoma", 13, FontStyle.Bold),
                    new SolidBrush(Color.DarkGray), 130, 40);  //my_label class constructor (created by myself)

          e.Graphics.DrawString(texto_modo.texto, texto_modo.fonte, texto_modo.cor, texto_modo.posX, texto_modo.posY);

          e.Graphics.Clear(Color.Empty);
}

[/code]

- Finally I also tried to insert a label (with transparent background) on stage and define that label as a "daughter" of the background image but I have an error message;

[code]

label1.Parent = pictureBox1;

[/code]

 

I will appreciate any help, thanks a lot Smiley.

 

Regards