Hello. Thanks all of you for reply.
The function from STRONGM works just in run time.
I want to make ActiveX control, which use Labels and TextBoxes. Therefore I need to calculate label caption width at designing time.
Example:
I put my control into form. When I set caption of my control, which is acctualy label caption, I want to move all TextBoxes in my control to the right of the longest label's caption. This must depends on label's font too.
How can I do that.
Thanks
Andrej