Visual Basic Reference

Visual Studio 6.0

ReadOnly Property

See Also    Example    Applies To

Returns or sets a value that determines whether a FileListBox control contains files with read-only attributes.


object.ReadOnly [ = boolean]

The ReadOnly property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
boolean A Boolean expression that specifies whether the control displays files with read-only attributes, as described in Settings.


The settings for boolean are:

Setting Description
True The control includes read-only files in the list.
False No read-only files are listed in the control.


Use the ReadOnly property with a FileListBox control to specify whether files with read-only attributes are displayed in the file list or not.