[Mono-bugs] [Bug 398605] TextBox.MaxLength is being Ignored

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jun 11 05:52:45 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=398605

User valentin.sawadski at googlemail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=398605#c2





--- Comment #2 from Valentin Sawadski <valentin.sawadski at googlemail.com>  2008-06-11 03:52:45 MDT ---
Hi,

I tried to come up with some unit test but the problem is that the MaxLength is
being ignored when the Text-Property is being set directly. I just does not
accept new keyboard input when the limit has been reached.

This makes it hard to develop tests because I had trouble using sendkeys to
emulate keyboard input. So far I could only advice you guys to create a form
with a textbox and start typing. :-/

However I have taken a look into the sources and believe that the
Document.CharCount has a wrong value which causes the bug in TextBox. For
example, Document.CharCount is not being updated when "InsertCharAt" is being
called, but this is the primary method used when typing into a TextBox.

Kind Regards,
Valentin


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list