Label problem:
Place 2 labels on a form, both the same font and fontsize.
1 standard label
1 Krool label
Then execute this:
The labels both appear correct, their width is ok.Code:With Label1 .AutoSize = True .Caption = "abcdefg" Debug.Print "Label1: ", .Width End With With LabelW1 .AutoSize = True .Caption = "abcdefg" Debug.Print "Labelw1: ", .Width End With
But the widths are different numbers:
The width is 71 pixels.
Screen.TwipsPerPixelX is 12.
71 x 12 = 852
Something is wrong so far...
Next effect:
When I execute the code the second time, the width is 852 for both labels.
Thank you,
Karl




Reply With Quote