Edit Masked TextBox in c#

Hi All,
I customized to edit Mask TextBox for validation IP address. I set Mask "000.000.000.000" and PromtChar is "_" so when enter data it appear
"12_.123._34._1_" not good.
I used RexgularExpressions for check a IP such as above.

if (!isRegExValid(this.Text,this.ValidationText))

{

isValid =false;

ShowError((this._errorMsg.Length == 0) ? _DEFAULT_INVALID_MSG :this._errorMsg);

}

else

{

if (this.RegExPatternMode ==RegularExpressionModes.IP && !isRegExValidIP(Text))

{

isValid =false;

ShowError((this._errorMsg.Length == 0) ? _DEFAULT_INVALID_MSG :this._errorMsg);

}

else

isValid =true;

}




[1863 byte] By [TaoNguyen] at [2007-12-16]
# 1
U should put this question in the "Window Form General" Topic.
khiemvo at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms Sample Applications...
# 2
Try setting the .Mask property to 099.099.099.099
The '9' indicates an optional digit.
Also ensure that the .TextMaskFormat property is NOT set to .IncludePrompt
BenWillett at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms Sample Applications...