By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,889 Members | 1,258 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,889 IT Pros & Developers. It's quick & easy.

Autosize a textbox (Framework 2.0)

P: n/a
How can you autosize a dynamically generated textbox on a form in VS2005
since there is no longer a TextBox.Autosize property? Everything I've read
says that it should autosize automatically, but it doesn't. It sets the
textbox size to the standard size generated by windows. How can I autosize
based upon the text inserted?

'Form code omitted

Dim NewControl as New TextBox
NewControl.Text = "This is a line filled with a whole bunch of text."
Me.Controls.Add(NewControl)
Feb 18 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.