Home Cooker Classes Others Rice CookerGX
Classes  >  textbox  >  ReadOnly(bool)
textbox class : ReadOnly(bool) setter

Description

Sets a value indicating whether it is read-only.

Syntax

textboxInstance.ReadOnly = readonlyStatus

Arguments

ClassNameDescription
boolreadonlyStatusA value indicating whether it is read-only.

Return value

None

Sample code

// anyTextbox is an instance of textbox class.

anyTextbox.ReadOnly = true;

Notes

If you assign true to the ReadOnly setter, the readonly attribute will automatically be written to the tag.

If you assign false to the ReadOnly setter, the readonly attribute will automatically be removed from the tag.

Links for reference

Copyright © Rice All rights reserved.