# GotoDialog.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 > GotoDialog.FindItem Method
- **653 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/gotodialog/finditem-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/gotodialog/finditem-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/gotodialog/finditem-method/llms-full.txt

---

### Description

Finds a control that has the provided identifier name.

### Syntax

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

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

### Parameters

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

### Return Value

The requested control if found. Otherwise null.

### Examples

The following example removes the 'Table' item from the [GotoDialog](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/gotodialog/llms-full.txt)'s 'Go to what' list:

```csharp
ListBox ctrl = (ListBox)dlg.FindItem(TXTextControl.GotoDialog.DialogItem.TXITEM_GotoList);
ctrl.Items.RemoveAt(3);
```

```vbnet
Dim ctrl As ListBox = DirectCast(dlg.FindItem(TXTextControl.GotoDialog.DialogItem.TXITEM_GotoList), ListBox)
ctrl.Items.RemoveAt(3)
```

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

```csharp
System.Windows.Forms.Control result = gotoDialog.FindItem(GotoDialog.DialogItem.TXITEM_GotoLabel);
result?.Select();
```

```vbnet
Dim result As System.Windows.Forms.Control = gotoDialog.FindItem(GotoDialog.DialogItem.TXITEM_GotoLabel)
If result IsNot Nothing Then result.Select()
```

---

## Nearby

- **Previous:** [GotoDialog.DialogItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/gotodialog/dialogitem-enumeration/llms-full.txt)
- **Next:** [HeaderFooter Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/headerfooter/llms-full.txt)
