As far as I know, the code in VB may be replaced with a similar code in C#. But, I doubt if playing with font size is a handy idea. Dunno about others, but I, personally, look cautious at web elements, who are living with their own life =) E.g. changing it's size or placement, so I need to wait till the "magic" would finish and then try continue to work.
It's just MHO .. and maybe in your case it's needed, but I decided to share my concerns :)
yes, i agree with you antenka. i've now changed it, so the user can scale the font to the desired size, then i just output the text using the current font size etc.. now i just have to figure out finding the textbox's current X,Y, then adding these values in a pdf which is using "mm" units.. :/ argh!.. stupid idiot proof program!
ps.. you wouldn't know which is better to use..
or another method to get the current X Y of the textbox?..
they both work, but i get odd results when the user moves the textbox a few times..