# RibbonTextBox.SmallIcon Property

> Gets or sets a 16x16 1/96 inch icon for this RibbonTextBox. This icon is shown when the DisplayMode property is set to IconTextRelation.SmallIconLabeled or IconTextRelation.SmallIconUnlabeled.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.Windows.Forms.Ribbon`
- **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.Windows.Forms.Ribbon > RibbonTextBox.SmallIcon Property
- **387 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox/smallicon-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox/smallicon-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox/smallicon-property/llms-full.txt

---

### Description

Gets or sets a 16x16 1/96 inch icon for this RibbonTextBox. This icon is shown when the [DisplayMode](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox/displaymode-property/llms-full.txt) property is set to [IconTextRelation.SmallIconLabeled](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/icontextrelation/enumeration/llms-full.txt) or IconTextRelation.SmallIconUnlabeled.

### Syntax

```csharp
public System.Drawing.Image SmallIcon { get; set; }
```

```vbnet
Public Property SmallIcon As System.Drawing.Image
```

### Examples

The following example uses `RibbonTextBox.SmallIcon` to configure small icon as part of the ribbon text box workflow. The change is then applied to the active document or user interface.

```csharp
ribbonTextBox.SmallIcon = System.Drawing.Image.FromFile(@"Images\icon.png");
ribbonTextBox.Update();
```

```vbnet
ribbonTextBox.SmallIcon = System.Drawing.Image.FromFile("Images\icon.png")
ribbonTextBox.Update()
```

---

## Nearby

- **Previous:** [RibbonTextBox.ShowUpDownButtons Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox/showupdownbuttons-property/llms-full.txt)
- **Next:** [RibbonTextBox.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox/text-property/llms-full.txt)
