Hello all,
AutoSize property of label all we know. This makes the width of label expand as per the contents.
I am using a 3rd party activex control which is drawn on image as annotation. This control returns its bounds in bitmap coordinates and can be set as well like that. The basic problem i am facing is to Set its width according to length of text which is set in it and also when to set it according to different font set and font sizes.
Any ideas how to implement the AutoSize functionality for such use.
For now temporary workaround I have done is to set the content to a label which is autosized, and then by converting the width of label to bitmap coordinates and then set it to the annotation activex. But still its not working perfectly.
Regds,
