TextView.SetFocus
-----------------

Sets focus to the text view.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [TextView](component_TextView.md) | [9.2](newinversion92.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |

MBS( "TextView.SetFocus"; TextView ) 

**MBS**( **"TextView.SetFocus";** /\* Sets focus to the text view. \*/  
**$TextView**) /\* The reference number to the text view. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| TextView | The reference number to the text view. | $textview |

### Result

Returns OK or error.

### Description

Sets focus to the text view.  
### See also

- [TextView.SetFrame](TextViewSetFrame.md)
- [WebView.SetFocus](WebViewSetFocus.md)

This function checks for a license.

Created 17th April 2019 , last changed 17th April 2019

  
[TextView.SetAutoResizingMask](TextViewSetAutoResizingMask.md) - [TextView.SetFrame](TextViewSetFrame.md)

[HTML Version](TextViewSetFocus.shtml)