Version

Creating a Digital Gauge in Design View

Digital gauges visually represent data similar to a digital watch or a digital alarm clock.

To add a Digital gauge to the WinGauge*control:

  1. From the toolbox, drag the UltraGauge control to your form.

  2. In the Properties window, click the Gauges property. Then, click the ellipsis (…) button to open the Gauges collection editor.

  3. In the Gauges collection editor, click Add, and select Add Segmented Digital Gauge.

WinGauge's gauge's collection editor.
  1. At this point, the Digital Gauge has been added, but it is not visible because you have not set the specific properties. To start configuring the Gauge control, expand the Misc property.

  2. Create a new BrushElement object by clicking the BrushElement property. Then, from the drop-down list, select Solid Fill.

  3. Expand the BrushElement property, and set the Color property to Black.

  4. At this point, you should see the Digital Gauge.

WinGauge on a form with no scales
  1. Resize the gauge by expanding the Bounds property. Set the Width property to 250, and the Height property to 100\.

  2. Set the Digits property to 4.

  3. Create a new FontBrushElement object by clicking the FontBrushElement property. Then, from the drop-down list, select Solid Fill.

  4. Expand the FontBrushElement property, and set the Color property to GreenYellow.

  5. Create a new UnlitBrushElement object by clicking the UnlitBrushElement property. Then, from the drop-down list, select Solid Fill.

  6. Expand the UnlitBrushElement property, and set the Color property to DarkGreen.

  7. Set the Text property to 1234.

  8. Run the project. It should look similar to the form below.

Finished digital wingauge.