# ImageDisplayMode Property

> Sets how the image selected with ObjectCurrent is displayed or refreshed: standard mode, a gray rectangle, or container mode for transparent controls.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > ImageDisplayMode Property
- **253 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/imagedisplaymode-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/imagedisplaymode-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/imagedisplaymode-property/llms-full.txt

---

Provides several modes to set the way in which images are displayed or refreshed. The [ObjectCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectcurrent-property/llms-full.txt) property determines the image.

### Syntax

```vbscript
TXTextControl.ImageDisplayMode [= value]
```

| Setting | Description |
|---|---|
| 0 | (Default) Standard mode. |
| &H1 | Displays an image as a gray rectangle. |
| &H2 | Container mode. This mode ensures proper refreshing when the image is used as a background image for transparent controls. |

### Data Types

Integer.

### Limitations

Run time only.

### Remarks

The property settings can be combined by adding the desired constant values.

### See Also

- [ImageInsert Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/imageinsert-method/llms-full.txt)
- [ImageInsertAsChar Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/imageinsertaschar-method/llms-full.txt)
- [ImageInsertFixed Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/imageinsertfixed-method/llms-full.txt)
- [Programming Category: Images, Text Frames, Signature Fields and OLE Objects](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/images-objects/llms-full.txt)

---

## Nearby

- **Previous:** [hWnd Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/hwnd-property/llms-full.txt)
- **Next:** [ImageExportCompressionQuality Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/imageexportcompressionquality-property/llms-full.txt)
