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

---

### Description

Finds a control that has the provided identifier name.

### Syntax

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

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

### Parameters

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

### Return Value

The requested control if found. Otherwise null.

### Examples

The following example removes the 'Go To' button from the [HyperlinkDialog](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/hyperlinkdialog/llms-full.txt) object:

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

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

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

```csharp
System.Windows.Forms.Control result = hyperlinkDialog.FindItem(HyperlinkDialog.DialogItem.TXITEM_HyperlinkTextLabel);
result?.Select();
```

```vbnet
Dim result As System.Windows.Forms.Control = hyperlinkDialog.FindItem(HyperlinkDialog.DialogItem.TXITEM_HyperlinkTextLabel)
If result IsNot Nothing Then result.Select()
```

---

## Nearby

- **Previous:** [HyperlinkDialog.DialogItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/hyperlinkdialog/dialogitem-enumeration/llms-full.txt)
- **Next:** [HypertextLink Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/hypertextlink/llms-full.txt)
