VB Gauge Custom Control: Valid Range for NeedleWidth 1-32,767

ID Number: Q81187

1.00

WINDOWS

buglist1.00

Summary:

When you add the Gauge custom control control to a form, the

NeedleWidth property incorrectly displays a value of 0 in the Settings

box on the Properties bar. After running the Visual Basic application,

the Settings box will display the correct default value of 1, unless

the property was modified during run time.

The valid range for the NeedleWidth property of the Gauge custom

control is 1 to 32,767. Attempting to set the NeedleWidth property to

a value outside this range resets the value to 1.

Microsoft has confirmed this to be a problem in the Gauge custom

control provided with Microsoft Professional Toolkit for Microsoft

Visual Basic programming system version 1.0 for Windows. We are

researching this problem and will post new information here as it

becomes available.

More Information:

Steps to Reproduce Problem

--------------------------

1. Start Visual Basic, or from the File menu, choose New Project (ALT,

F, N) if Visual Basic is already running.

2. Add the GAUGE.VBX file to your project by choosing Add File

(CTRL+F12) from the File menu and selecting GAUGE.VBX from the

appropriate directory.

3. Add the Gauge control to Form1.

4. Select the NeedleWidth property from the Properties list box to

display the default NeedleWidth value. Note that the value is set

to 0, which is outside the valid range of this property.

5. From the Run menu, choose Start (ALT, R, S) to run the program.

6. Double-click the form's Control box to end the application.

7. Again, select the NeedleWidth property from the Properties list box

to display the default NeedleWidth Value. Note that the value is

now set to 1.

Additional reference words: 1.00 1.0