How to do zoom to a textbox 2

Sorry for the delay but i have to do a travel this weekend and i have just returned.

The thing I want to do is to have a listcombo of percentages that changes the listbox to do more bigger, as you realise if you change the size of the font, the phrases are not the same number or the same size of letters. Only want to do zoom as if the textbox were a picture.
The program word of microsoft office does exactly how I want to do it.
[444 byte] By [Jamaicol] at [2007-11-19 14:00:45]
# 1 Re: How to do zoom to a textbox 2
Sorry for the delay but i have to do a travel this weekend and i have just returned.

The thing I want to do is to have a listcombo of percentages that changes the listbox to do more bigger, as you realise if you change the size of the font, the phrases are not the same number or the same size of letters. Only want to do zoom as if the textbox were a picture.
The program word of microsoft office does exactly how I want to do it. I think you have to resize every singe part of your txtBoxyou have to change height, width of the box itself, margines, linepositiones of each line in the box, all Fontsizes. If you want to get it correct then you have to check what text is in each line and reducing Font size in that amount that it fits into new linesize optically seen, just as in original size ( 100 % ) and doesnt shift text to the next line. Special problems are bold fonts, because in smaller fonts the text is relativly more expanded in his width as in in bigger fonts. Its a big deal doing that in C++, I never have seen that done in VB before. Good luck.
Another way would be to handle it as a picture, but I think, you want not doing it in that way, because as in word you want to change text even when he is set to for example 75 % , isn't it.

Jonny Poet
JonnyPoet at 2007-11-9 20:28:59 >