Previous | Index | Next 

Min and Max properties

The Min and Max properties aren’t supported and map to Minimum and Maximum properties, respectively.

Even more important is that VB6 supports scrollbars whose minimum value is higher than its maximum value, a setting that is useful to implement scrollbars that work in nonstandard way (for example, a vertical scrollbar whose bottommost position corresponds to the minimum value). This arrangement isn’t available for .NET scrollbars, as this code demonstrates:

        HScroll1.Minimum = 1
        HScroll1.Maximum = 100
        HScroll1.Minimum = 200             ' higher than Maximum!
        Debug.WriteLine(HScroll1.Maximum)  ' displays "200"

Converting such scrollbars to VB.NET using the Upgrade Wizard can be quite cumbersome. VB Migration Partner fully supports the Min and Max properties and, above all, supports the VB6 behavior and guarantees that functional equivalence is preserved.

 

Previous | Index | Next