My label is wrapping the text due to the length of the text. The height property returns the correct value only if there is a single line. How can I get the correct height?
Thanks.
Solution: I was creating the label dynamically and checking the height then. Later the panel on which the label was residing was added to a form, changing the panel's font and thus also changing the label's font and height.