Loosing text in a memo box

A

Ana

Hi,

When entering in a memo box, the existing text is displayed highlighted so
when someone is pressing a key, the text is loss. How to prevent such
problem?

TIA

Ana
 
D

Dennis

In the On Got Focus event of the Memo Box, put this code. (In my example the
memo box is called txtMemo)

txtMemo.SelLength = 0
 
D

Dennis

txtMemo.SelLength = 0
If Not IsNull(txtMemo) Then
txtMemo.SelStart = Len(txtMemo)
End If
 
Top