I add a named div tag at the end of the label control I need height calculated with:
ContainerControl11.label6.text = ContainerControl11.label6.text +"<raw><div class='ibb'> </div></raw>"
that I search for it in a single time executed timer event (200 ms) with:
where myhtmlarea1 is of course MyHTMLArea that returns the value through "visina" event, to avoid using changing hashtags on the fly.
my visina event has
r as integer
parameter, that i get in executeevent part of the myhtml area
dim visinat as integer = Parameters(0).IntegerValue
This wont work on resizing windows unless you call search for ibb div in resize event - I didn't really try it that way - feel free to experiment.
Will have to clean up my code considerably to send example here, but do call if needed.
Control widths I leave on auto (locked right and left). Before thsi I used Michal's solution with hashtag onchange event that also works but is visible to user.