Increase TextBox size

February 12, 2009 on 5:49 pm | In Programming | 2 Comments

This is a trick I might need more often since we sometimes work with large logs. And the default size of a TextBox seems to be 32767
Code to change and check the size:

Dim instance As TextBox
Dim value As Integer
instance.MaxLength = value
value = instance.MaxLength

Found that here: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.textbox.maxlength.aspx

2 Comments »

RSS feed for comments on this post. TrackBack URI

  1. Great site, how do I subscribe?

    Comment by Kelli Garner — October 3, 2009 #

  2. Hi Kelli šŸ˜‰

    I think the easiest way would be to use the RSS feeds. For my programming category the URL is:
    http://www.pieter-arntz.info/wordpressblog/?feed=rss2&cat=4

    Thanks for your interest.

    Pieter

    Comment by metallica — October 3, 2009 #

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds. Valid XHTML and CSS. ^Top^