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.
Unfortunately, activation email could not send to your email. Please try again.

MaskedEditBox used for editing IP addresses

Thread ID:

Created:

Updated:

Platform:

Replies:

5680 Jul 14,2003 05:38 AM Apr 20,2007 02:56 PM Windows Forms 4
loading
Tags: Tools
Michael Werner
Asked On July 14, 2003 05:38 AM

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?

Davis Jebaraj [Syncfusion]
Replied On July 14, 2003 02:35 PM

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?

Davis Jebaraj [Syncfusion]
Replied On July 15, 2003 01:59 PM

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

ERobishaw
Replied On April 17, 2007 10:49 AM

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

any way it could be reposted?


Murugan [Syncfusion]
Replied On April 20, 2007 02:56 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;