VisualHint's blog

Visual C# Express beta2

Just installed it yesterday and everything seems fine with the current code. I had only one compile error and it deals with MaskedTextBox.InputText. This property simply disappeared and this is a real annoyance for me. I currently have a workaround. Let me explain my concern:

In a previous post, I showed an example with a phone number. It is stored as a string variable that doesn't contain the characters of the mask, i.e. 5551234567 and not (555)123-4567. When the user edits the variable I want to retrieve a string without the special characters and InputText was allowing that. My workaround is to temporarily reset the mask to nothing, grab the string and restore the mask, and even freeze the painting during this operation. Please, Microsoft, restore this property, or let me know how elegantly I can do that ;)