Creating a C1RadialGauge control in code is fairly simple. In the following steps you'll add a PlaceHolder control to the page, add an import statement, add and customize the C1RadialGauge, and add the control to the PlaceHolder.
Complete the following steps:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Imports C1.Web.Wijmo.Controls.C1Gauge |
To write code in C#
C# |
Copy Code
|
---|---|
using C1.Web.Wijmo.Controls.C1Gauge; |
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
' Create a new C1RadialGauge. ' Set the control's size and value. ' Add the C1RadialGauge to the PlaceHolder control. |
To write code in C#
C# |
Copy Code
|
---|---|
// Create a new C1RadialGauge. // Set the control's size and value. // Add the C1RadialGauge to the PlaceHolder control. |
What You've Accomplished
Run your application and observe that the C1RadialGauge control was created.