This documentation is archived and is not being maintained.

ToolboxItem.Lock Method

Locks the toolbox item and prevents changes to its properties.

[Visual Basic]
Public Sub Lock()
[C#]
public void Lock();
[C++]
public: void Lock();
[JScript]
public function Lock();

Remarks

The properties of a toolbox item cannot be changed when it is locked.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ToolboxItem Class | ToolboxItem Members | System.Drawing.Design Namespace

Show: