Wrox Programmer Forums
|
Infopath Programming and automation discussions only please. :)
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Infopath section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 13th, 2007, 08:03 PM
Authorized User
 
Join Date: Jun 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to sandeep
Default RichTextBox Query

Hi,

I am using InfoPath 2003 and have a form with RichTextBox. I need to limit the size of the textbox to 450 characters. I am aware that this can be done for a normal textbox by checking the checkbox "Limit text box to:" in Display tab of Properties Dialog box. I cannot find a similar checkbox in RichTextBox properties.

I am also aware that the workaround for this might be to add a Data Validation with custom pattern match like ".{450,}" Or I could write a script for OnBeforeChange event, but in either case the validation occurs after the user tabs to some other control. I want to limit the user to not able to enter any further character once the limit of 450 characters is reached. Does anyone know of any event that can achieve this?

Many Thanks,
Sandeep Saran





Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Tables in RichTextBox katsarosj Pro VB.NET 2002/2003 13 March 14th, 2014 05:50 AM
filling RichTextBox using MemoryStream melvik C# 8 August 30th, 2011 02:25 AM
How to Print RichTextBox marcusbris VB How-To 0 December 2nd, 2006 09:29 AM
RichTextBox Help Kaustav VB How-To 1 February 22nd, 2006 03:53 PM
What is the use of a richtextbox? snowydust VB How-To 2 July 28th, 2004 11:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.