Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
485
IP Address Editor
posted

Hi,

I tried  developed a IP Addtrss Editor control using the Masked Text Ediotor.

I had set the mask as nnn.nnn.nnn.

How to check for the valid range of values.like invalid IP Address .

Regards

Vinutha

 

  • 69832
    Offline posted

    You cannot specify a maximum value per section, which I think you would need for IP address validation (i.e., so that only values between the range of 000 and 255 are accepted). You could handle the Validating event, get the text of the control, parse each component of the address, and check to make sure each one is within the valid range.