Re: [2005] AutoSize Property
To answer your first question, if the AutoSize property is set to True, the label will expand to fit its text. If you want a fixed size then set its AutoSize property to False.
Re: [2005] AutoSize Property
I know what AutoSize does. I am saying the label's height increases for no apparent reason.
How about this. Is there a way to align the middle's of two controls in code.
I am currently using
Code:
ctrl2.Top = Cint(ctrl1.height / 2) - (ctrl2.height / 2)
Re: [2005] AutoSize Property
Dim tSize As System.Drawing.SizeF = e.Graphics.MeasureString(label1.text, label1.font)
MsgBox(tSize.Height)
' that'll measure your label text height
try:
(ctrl1.height - ctrl2.height) / 2