We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

MaskedEditBox used for editing IP addresses

Hi all, I´ve a problem with the MaskedEditBox. I want to use the MaskedEditBox for editing ip addresses. So I initialized the control as follows: Mask = @"###\.###\.###\.###"; UsageMode = MaskedUsageMode.Numeric; DecimalSeparator = '.'; MinValue = (decimal)0; MaxValue = (decimal)255; My problem: the MaxValue seems to relate only on the first three digits (the first field of four). But I want it logical separate on all four fields. Could anyone help me?

4 Replies

DJ Davis Jebaraj Syncfusion Team July 14, 2003 06:35 PM UTC

Hi, The MaxValue and MinValue properties are not supported for sections of the Mask. It is possible to achieve the kind of validation you need by handling the MaskCustomValidate event. However, to make the parsing of the content easier, I have made a minor change to the MaskedEditBox control that is not available in the publicly available versions. I will send you a sample along with the modified version so that you use that till the next update is released. I will send the sample to you by tomorrow. Thank you for your patience. Regards, Davis > Hi all, > > I´ve a problem with the MaskedEditBox. I want to use the MaskedEditBox for editing ip addresses. So I initialized the control as follows: > > Mask = @"###\.###\.###\.###"; > UsageMode = MaskedUsageMode.Numeric; > DecimalSeparator = '.'; > MinValue = (decimal)0; > MaxValue = (decimal)255; > > My problem: the MaxValue seems to relate only on the first three digits (the first field of four). But I want it logical separate on all four fields. > > Could anyone help me?


DJ Davis Jebaraj Syncfusion Team July 15, 2003 05:59 PM UTC

Hi, The attached sample shows how to implement a IP Address control using the MaskCustomValidate event. You will need to install the latest version 1.6.1.3 for this to work: To see the Readme / release notes, see: http://www.syncfusion.net/squiffler/patches/v1613/readme.htm If you have version 1.6.1.2 you can get the patch from : http://www.syncfusion.net/squiffler/patches/v1613/es_1.6.1.2_to_1.6.1.3_sp.exe If you have version 1.6.1.1 you can get the patch from : http://www.syncfusion.net/squiffler/patches/v1613/es_1.6.1.1_to_1.6.1.3_sp.exe If you have version 1.6.1.0 you can get the patch from : http://www.syncfusion.net/squiffler/patches/v1613/es_1.6.1.0_to_1.6.1.3_sp.exe To download the full install, use: http://www.syncfusion.net/squiffler/patches/v1613/syncfusionessentialsuitesetup.exe Regards, Davis


ER ERobishaw April 17, 2007 02:49 PM UTC

The example link in the previous post is broken...

any way it could be reposted?



MU Murugan Syncfusion Team April 20, 2007 06:56 PM UTC

Hi Eric,

Sorry for the inconvenience caused. Here is the link to the attachment. Please refer to this and let me know if it helps you.

http://websamples.syncfusion.com/samples/Tools.Windows/F5680/Main.htm

Thanks,
Murugan P.S

Loader.
Live Chat Icon For mobile
Up arrow icon