Hi,
I'm using Visual C#.net
I would like to know how to get a count of the lines in a label control.
This is easy to do with a text box (GetLineFromCharIndex(99999)), but the label control does not have this function.
The label for instance would be a set width, but the text wraps around over several lines.
If I know the number of lines I can then set the height of the label control appropriately.
Thanks
I'm using Visual C#.net
I would like to know how to get a count of the lines in a label control.
This is easy to do with a text box (GetLineFromCharIndex(99999)), but the label control does not have this function.
The label for instance would be a set width, but the text wraps around over several lines.
If I know the number of lines I can then set the height of the label control appropriately.
Thanks