Resize Textbox To String Length?

Advertisement

I can't believe how difficult this is, after spending 5 hours searching the closest I find and understand is[code]...

I just wish to resize a dynamic textbox to the string length of the text