> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DisableCommand Method of the Commands Object

> DisableCommand method of the Commands Object in ABBYY FineReader Engine Visual Components on Windows — This method disables (includes to the list of forbidden) the specified command.

This method disables (includes to the list of forbidden) the specified command.

## Syntax

### C++

```cpp theme={null}
HRESULT DisableCommand( MenuItemEnum Value );
```

### C\#

```csharp theme={null}
void DisableCommand( MenuItemEnum Value );
```

### Visual Basic .NET

```vb theme={null}
Sub DisableCommand(Value As MenuItemEnum)
```

## Parameters

Value

\[in] Specifies the disabled command as a [MenuItemEnum](/fine-reader/engine/visual-components-reference/enumerations/menuitemenum) constant. See the list of available commands:

* [Image Viewer commands](/fine-reader/engine/visual-components-reference/imageviewer/image-viewer-commands)
* [Zoom Viewer commands](/fine-reader/engine/visual-components-reference/zoomviewer/zoom-viewer-commands)
* [Document Viewer commands](/fine-reader/engine/visual-components-reference/documentviewer/document-viewer-commands)
* [Text Editor commands](/fine-reader/engine/visual-components-reference/texteditor/text-editor-commands)

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

[Commands](/fine-reader/engine/visual-components-reference/supplementary-objects/commands)

[EnableCommand](/fine-reader/engine/visual-components-reference/supplementary-objects/commands/enablecommand-method)
