Deepak Singh
Posts: 13
Joined: Tue May 12, 2020 12:05 pm

Restrict user to add only the specified range values

Hi,

I have created an MSI package having a dialog box with an edit control in it. I just want to add a condition for the edit control so that user cannot add integer value less then 0 and greater then 100 in it . I tried to search solution for this but I didn't get any. Can anyone share a way out to resolve this.

Thanks and Regards,
Deepak Singh
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Restrict user to add only the specified range values

Hi Deepak,

I'm afraid that instant validation cannot be performed for the inserted characters. They can only be validated through a custom action when another button is pressed (e.g "Next" button). For this, you can implement the solution discussed in the "Validation of edit box for to accept IP Address" thread.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”