Labell Height

  • Thread starter Thread starter kirkm
  • Start date Start date
K

kirkm

Is it possible to calculate the Height value
for a label, depanding on contents ?

I've been counting the number of lines by

frmSerial.Label1.Height = ((CountCR(frmSerial.Label1)) * 10) + 10

Where 10 is font size + 2.

It sort of works but isn't 100%, especially when there's line wrap.

Is there a better way ?

Thanks - Kirk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top