as the server does not have access to the the browser fonts, web forms
can not do MeasureString. you would have to do this with client code.
-- bruce (sqlwork.com)
> I have to measure the length of a string in a Label,
> to set the adequate Label width
[quoted text clipped - 24 lines]
>
> Debug.Print(returnValue.Width.ToString)
teo - 31 Aug 2007 21:23 GMT
>as the server does not have access to the the browser fonts, web forms
>can not do MeasureString. you would have to do this with client code.
But I'm telling to the server that the font is "Arial,10" !
Like this:
Dim font As New Font("Arial", 10)
>-- bruce (sqlwork.com)
>
[quoted text clipped - 26 lines]
>>
>> Debug.Print(returnValue.Width.ToString)