Loosing text in a memo box

  • Thread starter Thread starter Ana
  • Start date Start date
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
 
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
 
txtMemo.SelLength = 0
If Not IsNull(txtMemo) Then
txtMemo.SelStart = Len(txtMemo)
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top