
01/02/2012, 09:19
|
| | Fecha de Ingreso: abril-2010
Mensajes: 82
Antigüedad: 14 años, 9 meses Puntos: 2 | |
Respuesta: Ajustar Width de Textbox dinamicamente Gente lo cierro yo el tema porque encontre la respuesta, se hace con el metodo MesaureText(byval Text as string, byval font as font)
Aplicado a mi ejemplo anterior seria igual solo que :
LargoCadena = TextRender.MeasureText(Obj.Text,Obj.Font)
Obj.Width = LargoCadena.Width
Lo paso por si a alguno le interesa.
Saludos |