Question : winforms range validation

i need to validate a range of 0001 to 9999. This is where I'm at thus far.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
if (IsRange(strCheck) == false)
            {
                MessageBox.Show("Must be in a range of 0001 to 9999");
                txtbxCableNumber.Focus();
            }



public bool IsRange(String strToCheck)
        {
            int minimumValue = 0001;
            int maximumValue = 9999;

            if (Convert.ToInt32(strToCheck) <= minimumValue || Convert.ToInt32(strToCheck) >= maximumValue)
            {
                return false;
            }
            else
            {
                return true;
            }
        }

Answer : winforms range validation

It seems, the latest components you have installed are cause of the problem.
What you can do:

1. You can just delete the package (*.pbl file) for the trial version of QuickReport. It is usually located at Delphi/Projects/Bpl folder

2. Also you can find and delete the corresponding key for this package in the registry:
HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Known Packages

BTW Delphi 7 already comes with QuickReport, but it isn't installed automatically:
http://delphi.about.com/cs/adptips2002/a/bltip1102_4.htm
Random Solutions  
 
programming4us programming4us