次のようなエラーが表示されます
「タイプ 'System.StackOverflowException' の未処理の例外が ciscontrols.dll で発生しました」.
私のコードは以下のとおりです
    private int _vin;
    public int MaxLength
    {
        get { return _vin; }
        set //Here your answer solve the promblem
        {
            txtLocl.MaxLength = value;
            if (value < 2)
            {
                throw new ArgumentOutOfRangeException("MaxLength","MaxLength MinValue should be 2.");
            }
            else this._vin = value;
        }
    }
小数点以下の新しいプロパティを作成しています
private int Dval;
    public int DecPlaces
    {
        get { return Dval; }
        set// here it showing the same error
        {
            DecPlaces = value; // MaxLength is a preDefined Property but  DecPlaces created by me.
            if (value < 2)
            {
                throw new ArgumentOutOfRangeException("decplaces", "decimal places minimum value should be 2.");
            }
            else this.Dval = value;
        }
    }