NicoVB Posted July 21, 2003 Posted July 21, 2003 I have a textbox filled with some dynamic text. I want that I can make the textbox programmaticaly (or automatically) so high that i don't have to scroll to so all of the content (all the content should be displayed right on the screen). How to do this??? Quote Visit http://www.nico.gotdns.com Now ONLINE!
Leaders dynamic_sysop Posted July 21, 2003 Leaders Posted July 21, 2003 not sure if this will give you any ideas , but you could resize ( depending on the size of the text ofcourse ) on the amount of lines : Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim x As Integer Dim i As Integer = 20 For x = 0 To TextBox1.Lines.GetUpperBound(0) If Not x = 0 Then i += 20 End If Next TextBox1.Height = i End Sub Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.