﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Setting the maximum chars in a textbox</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 11:25:16 GMT</lastBuildDate><ttl>20</ttl><item><title>Setting the maximum chars in a textbox</title><link>http://forum.strataframe.net/FindPost23767.aspx</link><description>Hi,&lt;br&gt;
&lt;br&gt;
Is there an easy way of setting the maximum number of characters allowed in a text box based on the field length? I know I can set this manually by using the textbox MaxLength field but it is a little bit of a chore and I am lazy :)&lt;br&gt;
&lt;br&gt;
Has anyone come up with a way of doing this automatically?&lt;br&gt;
&lt;br&gt;
Thanks in advance,&lt;br&gt;
&lt;br&gt;
Aaron&lt;br&gt;
&lt;br&gt;</description><pubDate>Wed, 08 Jul 2009 10:57:52 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item><item><title>RE: Setting the maximum chars in a textbox</title><link>http://forum.strataframe.net/FindPost23786.aspx</link><description>Yeah, they are well tested and long-awaited controls.  The DateBox is a superb date entry control and is light-years better than the DateTimePicker that comes with .NET.  Enhancements will most likely ensue, but we have been using it for a year now and it supports globalization values, etc.  The ListView control coming out will continue to grow as we are still writing it (I am adding group functionality today), but it has features that the standard ListView never will.  So lots of fun things are going to start being released! :D</description><pubDate>Wed, 08 Jul 2009 10:57:52 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Setting the maximum chars in a textbox</title><link>http://forum.strataframe.net/FindPost23785.aspx</link><description>Hi Trent,&lt;br&gt;
&lt;br&gt;
Those are really great news. :P</description><pubDate>Wed, 08 Jul 2009 10:54:58 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Setting the maximum chars in a textbox</title><link>http://forum.strataframe.net/FindPost23784.aspx</link><description>We've gone ahead and added some new controls (DateBox, Calendar Control, and ExtendedCalenderManager) as well as several new beta controls that we are using in our medical application but will not be "officially" released until 1.7.1.  That is what the hold-up has been as well as trying to get a number of requested enhancements in (including this one).  So we are basically down to the docs which will require a little effort.  So the goal is within the next two weeks.</description><pubDate>Wed, 08 Jul 2009 10:35:18 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Setting the maximum chars in a textbox</title><link>http://forum.strataframe.net/FindPost23783.aspx</link><description>Nice :)&lt;br&gt;
&lt;br&gt;
Any idea on when the 1.7 build will be released?&lt;br&gt;
&lt;br&gt;
Aaron</description><pubDate>Wed, 08 Jul 2009 10:33:17 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item><item><title>RE: Setting the maximum chars in a textbox</title><link>http://forum.strataframe.net/FindPost23771.aspx</link><description>Actually, in the upcoming 1.7 build, this has been added the the SF textbox.  There is a property called AutoAdjustMaxLength on the textbox that will do this for you when using SF data binding.&lt;br&gt;
&lt;br&gt;
But for reference purposes, you can do this on a BO:&lt;br&gt;
&lt;br&gt;
[codesnippet]Dim maxLength As Integer = MyBO.FieldLengths("MyFieldName")[/codesnippet]&lt;br&gt;
&lt;br&gt;
or in C#&lt;br&gt;
&lt;br&gt;
[codesnippet]int maxLength = MyBO.FieldLengths["MyFieldName"];[/codesnippet]</description><pubDate>Wed, 08 Jul 2009 07:18:54 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>