Skip to content

AutoSize Property

Description

Returns or sets a value that determines whether the label control is automatically resized to display its entire contents.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property AutoSize() As Boolean

Remarks

When this property is set to True, the Label adjusts its width to display its entire contents. This property is typically set to True when you use a Label control to display various lengths of text, such as the status of an application process. You can also use this property when the application will display text in various languages, and the size of the text might increase or decrease based on the language settings in Windows.

You must set AutoSize to False if you want AutoEllipsis to be True.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.