>>>I am wondering if there is a way to autosize an editbox. txtwidth would be a problem, because of the word wrap, but could be possible to get at least close enough and add some additional height. Maybe someone has a better idea?
>>
>>What are you trying to accomplish?
>
>See attached image, it does work to a certain extend, I guess in some situations it may not be perfect.
Christian, I have the feeling that you will find this article answers most of your questions:
http://doughennig.com/Papers/Pub/GDIPlusX.pdfYou will find the sample code here:
http://doughennig.com/Papers/Pub/GDIPlusXSamples.zip