StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
Setting the maximum chars in a textbox
Setting the maximum chars in a textbox
Post Reply
Like
0
Setting the maximum chars in a textbox
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Aaron Young
Aaron Young
posted 15 Years Ago
ANSWER
Topic Details
Share Topic
Group: StrataFrame Users
Posts: 277,
Visits: 1.1K
Hi,
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
Has anyone come up with a way of doing this automatically?
Thanks in advance,
Aaron
Reply
Like
0
Trent Taylor
Trent Taylor
posted 15 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
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.
But for reference purposes, you can do this on a BO:
Dim maxLength As Integer = MyBO.FieldLengths("MyFieldName")
or in C#
int maxLength = MyBO.FieldLengths["MyFieldName"];
Reply
Like
0
Aaron Young
Aaron Young
posted 15 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Users
Posts: 277,
Visits: 1.1K
Nice
Any idea on when the 1.7 build will be released?
Aaron
Reply
Like
0
Trent Taylor
Trent Taylor
posted 15 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
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.
Reply
Like
0
Edhy Rijo
E
Edhy Rijo
posted 15 Years Ago
ANSWER
Post Details
Share Post
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
Hi Trent,
Those are really great news.
Edhy Rijo
Reply
Like
0
Trent Taylor
Trent Taylor
posted 15 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
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!
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search