This topic explains using a code example how to add the UltraRadialGauge™ control to Windows Forms applications.
This topic contains the following sections:
The following procedure demonstrates adding the UltraRadialGauge to Windows Forms applications.
The following is a screenshot of the UltraRadialGauge control.
Add the following Infragistics assemblies to your main project:
Infragistics.Win.DataVisualization.UltraGauges.dll
Infragistics.Win.DataVisualization.Shared.dll
Infragistics.Win.Portable.Core.dll
Also, add the following Infragistics namespaces:
In C#:
using Infragistics.Win.DataVisualization;
In VB:
Imports Infragistics.Win.DataVisualization
Following is a conceptual overview of the process:
1. Adding the UltraRadialGauge control to Windows Forms applications
2. Verifying the results
The following procedure takes you through the steps necessary for adding the UltraRadialGauge control to a page.
The following code demonstrates adding the UltraRadialGauge control with the minimum code and property settings required for display:
In Visual Basic:
Dim radialGauge As New UltraRadialGauge() Me.Controls.Add(radialGauge)
In C#:
var radialGauge = new UltraRadialGauge();
this.Controls.Add(radialGauge);
Build and run your project to verify the result. If you have implemented the steps correctly, the displayed UltraRadialGauge should look like the one in the Preview section above.
The following topics provide additional information related to this topic: