New to Telerik UI for WinForms? Download free 30-day trial

Getting Started with WinForms BulletGraph

When you drag a RadBulletGraph from the Toolbox and drop it onto the form, the gauge gallery will offer you to pick up the desired type:

Figure 1: Gallery Types

WinForms RadGauges Gallery Types

If you do not choose a gauge's style and just close the gallery, an empty RadBulletGraph will be created.

You can change the gauge's style via the Smart tag's option Open Gallery as well.

Figure 2: Smart Tag Gallery Options

WinForms RadGauges Smart Tag Gallery Options

Once the control is added to the form you just need to synchronize the FeaturedMeasure and ComparativeMeasure values with your business logic values. For example you can see how the controls work with the following code:

Figure 3: Update Properties

WinForms RadGauges Update Properties

Update Properties

Timer timer;
Random rand;

public BulletGraphCode()
    timer = new Timer();
    rand = new Random();
    timer.Interval = 1000;
    timer.Tick += timer_Tick;

void timer_Tick(object sender, EventArgs e)
    this.radBulletGraph1.FeaturedMeasure = rand.Next(100);
    this.radBulletGraph1.ComparativeMeasure = rand.Next(100);

Private timer As Timer
Private rand As Random
Public Sub New()
    timer = New Timer()
    rand = New Random()
    timer.Interval = 1000
    AddHandler timer.Tick, AddressOf timer_Tick
End Sub
Private Sub timer_Tick(ByVal sender As Object, ByVal e As EventArgs)
    radBulletGraph1.FeaturedMeasure = rand.Next(100)
    radBulletGraph1.ComparativeMeasure = rand.Next(100)
End Sub

Please note that when you select the style all elements will be automatically created and you can directly access them. You can create the control in code as well. More information is available in the following article:Getting Started

See Also

Telerik UI for WinForms Learning Resources

In this article