Articles in this section
Category / Section

How to reduce the size of the WinForms Linear Gauge?

4 mins read

Reduce the size of LinearGauge

You can reduce the size of the Winforms Linear Gauge by specifying the required size as the Minimum size of the LinearGauge. By default, LinearGauge is initialized with the minimum size.

C#

//Initializes MinimumSize for LinearGauge.
this.linearGauge1.MinimumSize = new Size(0, 0);
//Sets the required size of the LinearGauge.
this.linearGauge1.Size = new Size((int)this.integerTextBox1.IntegerValue, (int)this.integerTextBox2.IntegerValue);

 

VB

'Initializes MinimumSize for LinearGauge.
Me.linearGauge1.MinimumSize = New Size(0, 0)
'Sets the required size of the LinearGauge.
Me.linearGauge1.Size = New Size(CInt(Fix(Me.integerTextBox1.IntegerValue)), CInt(Fix(Me.integerTextBox2.IntegerValue)))

 

Note:

The “MinimumSize” property helps to specify the lower limit of the Linear Gauge.

 

 

LinearGauge with specified size

Figure 1: Linear Gauge with specified size


Figure 2: Default Size of Linear Gauge

LinearGauge with specified minimum size

Figure 3: Linear Gauge with Minimum size specified

Samples:

C#: LinearGauge_Resize_C#

VB: LinearGauge_Resize_VB

Reference link:



Conclusion

I hope you enjoyed learning about how to reduce the size of the WinForms Linear Gauge.

You can refer to our WinForms Linear Gauge feature tour page to know about its other groundbreaking feature representations. You can also explore our documentation to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!



Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied