# AutoScroll Event

> Occurs when the mouse leaves the visible client area while expanding a text selection without moving the caret; only raised in the Simple Control view mode.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Event
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > AutoScroll Event
- **196 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/autoscroll-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/autoscroll-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/autoscroll-event/llms-full.txt

---

This event occurs when the cursor leaves the visible portion of a Text Control's client area while a text selection is being expanded with the mouse. It is only sent if the cursor movement does not result in a caret movement. This happens if the cursor is moved outside the client area or if the cursor is moved over parts which are not covered with text below the last line. In all cases where the cursor movement results in a caret movement, the Text Control sends [CaretOutxxx](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/caretout-event/llms-full.txt) events. This event occurs only if the [ViewMode](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/viewmode-property/llms-full.txt) property has been set to **Simple Control**.

### Syntax

```vbscript
AutoScroll( )
```

### See Also

- [CaretOut Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/caretout-event/llms-full.txt)
- [Programming Category: Scrolling](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/scrolling/llms-full.txt)

---

## Nearby

- **Previous:** [AutoExpand Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/autoexpand-property/llms-full.txt)
- **Next:** [BackColor Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/backcolor-property/llms-full.txt)
