Locks the toolbox item and prevents changes to its properties.
The properties of a toolbox item cannot be changed when it is locked.