[Mono-winforms-list] Problem with textbox.maxlength

Valentin Sawadski valentin.sawadski at googlemail.com
Mon Jun 2 08:57:28 EDT 2008


Hi

On Tue, 2008-05-27 at 16:47 -0700, ma_c wrote:
> Hi.
> I'm using Visual Studio 2008. In a textbox properties, I select MaxLength
> with value "1" (textbox.MaxLength = 1;). This works in Windows (in the
> textbox only can be entered 1 character), but it doesn't work in Linux with
> Mono, the textbox accepts more than 1 character.
> 
> What can i do to solve it?

This sounds like a bug in our Texbox implementation. Until this is fixed
you could listen to the TextChanged event and reset the Text manually if
it's changed to something larger than 1 character. 

And btw. do you mind filing a bug with a short repro?

Thanks in advance,
Valentin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20080602/f10c6d4c/attachment.bin 


More information about the Mono-winforms-list mailing list