windowsforms-113856-controls-and-libraries-gauges-examples-how-to-create-a-digital-gauge-design-time.md
This is the third tutorial of the XtraGauges Getting Started series. It will guide you through the process of creating a Digital Gauge and adjusting its common settings.
This tutorial consists of the following steps.
Create a new Windows Forms Application in Visual Studio or open an existing one, add a GaugeControl and run its Preset Manager (as you would do it for circular or linear gauge).
The Preset Manager contains lots of style presets allowing you to quickly customize the gauge appearance.
Let’s apply the Cosmic style preset to the digital gauge.
The digital gauge appears on the form window with an appearance corresponding to the chosen style preset.
Let’s change the current preset style (e.g., to Dark Night ).
To do thos, click the smart tag and select Change Style , as shown below.
Then, in the invoked the Style Chooser manager, select the Dark Night style and click OK.
Then, the Form should look like the following.
Now the Digital Gauge control should look as shown in the image below.
Finally, add a label to the gauge. To accomplish this, locate the smart tag and click the Add Label option.
To customize a label on the gauge, it is necessary to locate it on the form and select Run Designer via the smart tag. See the image below.
In the invoked designer, change the label’s font, position and text, as shown below. Then, click the Ok button.
Then, you will see the following confirmation window.
Note
The confirmation window occurs in the Gauge Designer every time the current layout is changed.
Run the application to see the result.