# BookmarkDialog.FindItem Method

> Finds a control that has the provided identifier name.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 23.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > BookmarkDialog.FindItem Method
- **649 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/bookmarkdialog/finditem-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/bookmarkdialog/finditem-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/bookmarkdialog/finditem-method/llms-full.txt

---

### Description

Finds a control that has the provided identifier name.

### Syntax

```csharp
public Control FindItem(BookmarkDialog.DialogItem dialogItem);
```

```vbnet
Public Function FindItem(dialogItem As BookmarkDialog.DialogItem) As Control
```

### Parameters

| Parameter | Description |
|---|---|
| dialogItem | The name of the requested control represented by an enum of type [BookmarkDialog.DialogItem](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/bookmarkdialog/dialogitem-enumeration/llms-full.txt). |

### Return Value

The requested control if found. Otherwise null.

### Examples

The following example removes the 'Can be deleted during editing' check box from the [BookmarkDialog](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/bookmarkdialog/llms-full.txt) object:

```csharp
Control ctrl = dlg.FindItem(TXTextControl.BookmarkDialog.DialogItem.TXITEM_Deletable);
ctrl.Parent.Controls.Remove(ctrl);
```

```vbnet
Dim ctrl As Control = dlg.FindItem(TXTextControl.BookmarkDialog.DialogItem.TXITEM_Deletable)
ctrl.Parent.Controls.Remove(ctrl)
```

The following example finds a matching item in the bookmark dialog.

```csharp
System.Windows.Forms.Control result = bookmarkDialog.FindItem(BookmarkDialog.DialogItem.TXITEM_BookmarkNameLabel);
result?.Select();
```

```vbnet
Dim result As System.Windows.Forms.Control = bookmarkDialog.FindItem(BookmarkDialog.DialogItem.TXITEM_BookmarkNameLabel)
If result IsNot Nothing Then result.Select()
```

---

## Nearby

- **Previous:** [BookmarkDialog.DialogItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/bookmarkdialog/dialogitem-enumeration/llms-full.txt)
- **Next:** [ButtonBar Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/llms-full.txt)
