You can use the
TextRenderer.MeasureText Method
Like...
Font font = new Font("Arial", 14, FontStyle.Regular);
string a = "some text you need to display";
Size size = TextRenderer.MeasureText(a, font);
label1.Size = size;
label1.Text = a;
The
Size size = TextRenderer.MeasureText(a, font);
gets the size of the text in pixel. Change the size of your label,
label1.Size = size;
, and print the text.