f



How do I 'SELECT All' text in a text box

I want to select all text in a multi line text box from a command
butten.

Thank for help
Dave
0
last2try (4)
5/2/2004 11:29:33 PM
comp.lang.visual.basic 2233 articles. 0 followers. please859 (33) is leader. Post Follow

1 Replies
996 Views

Similar Articles

[PageSpeed] 58

Try this...

Private Sub Command1_Click()
  With Text1
    .SelStart = 0
    .SelLength = Len(.Text)
    .SetFocus
  End With
End Sub

Rick - MVP


"Dave" <last2try@earthlink.net> wrote in message
news:fo0b90h0j9imbvntdea3uu2mefth5teufr@4ax.com...
> I want to select all text in a multi line text box from a command
> butten.
>
> Thank for help
> Dave

0
5/3/2004 12:03:28 AM
Reply: