# ConnectTools Event

> MS Access only: occurs when all Text Controls, rulers, button bars and status bars are created, to connect them in two steps with their hWnd handles.

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

---

MS Access only: Occurs after all Text Controls, Rulers, Button Bars and Status Bars have been created and are ready to be connected. This has to be done in 2 steps as shown in the example below. (The example assumes that you have created a Text Control named 'tx' and a Ruler Bar, Button Bar and Status Bar named *Ruler*, *ButtonBar* and *StatusBar*.)

### Syntax

```vbscript
ConnectTools( )
```

### Examples

The following MS Access example shows the two-step process. The first step is code that must be added to the form's **Load** event the second step is code that must be added to this event.

```vbscript
Sub Form_Load ()
   Me!tx.object.RulerHandle = 1
   Me!tx.object.ButtonBarHandle = 1
   Me!tx.object.StatusBarHandle = 1
End Sub
Sub TX_ConnectTools ()
   Me!tx.object.RulerHandle = Me!Ruler.object.hWnd
   Me!tx.object.ButtonBarHandle = Me!ButtonBar.object.hWnd
   Me!tx.object.StatusBarHandle = Me!StatusBar.object.hWnd
End Sub
```

### See Also

- [Programming Category: Tool Bars](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/toolbars/llms-full.txt)

---

## Nearby

- **Previous:** [CommentUserName Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commentusername-property/llms-full.txt)
- **Next:** [ContextMenuOpening Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/contextmenuopening-event/llms-full.txt)
