[Mono-winforms-list] .NET v2 MaskedTextBox

Peter Dennis Bartok peter at novonyx.com
Wed Jun 29 17:13:50 EDT 2005

>TextBoxBase is the base class of MaskedTextBox so it has to be used anyway
>regardless of it's completion status.:) And thus it's better to use the
>functionality of TextBoxBase or implement missing functionality of
>TextBoxBase in TextBoxBase rather than implementing it in MaskedTextBox
>because it will be duplicated code when the same functionality in
>TextBoxBase will be implemented.

Microsoft does not use the same control for the underlying implementation of 
MaskedTextBox, and their doc explicitly describes that many TextBoxBase 
properties are ineffective when used with MaskedTextBox. Also, MaskedTextBox 
is a single-line only control, so implementing it as a separate control and 
branching in TextBoxBase would not too big a undertaking.

My point, however, was not whether or not TextBoxBase is complete (which it 
is), but that there are still significant changes being done to TextControl, 
to support RichText and fix bugs, which could interfere with patches Thomas 
might be developing gainst those classes.


More information about the Mono-winforms-list mailing list