Label Problem

Dec 20, 2010 at 4:02 PM

Hi,

Why when I create a Label object and use these instructions:

lab = new Label(this, gui);
            lab.X = 10;
            lab.Y = 10;          
            lab.Text = "CIAO";

this.gui.Add(this.lab);

I can't show the label??

If i create a button or other it works....

Someone help me!!

Thanks

Coordinator
Dec 23, 2010 at 11:22 AM

You have to resize the label first Labels don't have a default initial size. You can either set the Width and Height properties manually, or call Label.FitToText() (or something like that).

cdmac