In Visual 6 I could do the following.
private sub text5_gotfocus()
text5.selstart=0
text5.sellength = len(text5)
What this does is when this text box gets focus then any text in the text
box get highlited so when the user starts to type soemthing then all the text
that was in there gets deleted and the new text starts.
I would really appreciate any help

Signature
Clifford Sutton
Rude Dog - 22 Oct 2004 18:40 GMT
> In Visual 6 I could do the following.
> private sub text5_gotfocus()
[quoted text clipped - 6 lines]
>
> I would really appreciate any help
Even though you haven't actually asked a question here, I'm going to assume
you want to know how to accomplish the same thing in VB .NET. Use the
TextBox.SelectAll method.
Rachel - 24 Oct 2004 21:05 GMT
Private Sub TextBox1_GotFocus(ByVal sender As Object, ByVal e As
System.EventArgs) Handles TextBox1.GotFocus
TextBox1.SelectAll()
TextBox1.SelectionLength = Len(TextBox1.Text)
End Sub
> In Visual 6 I could do the following.
> private sub text5_gotfocus()
[quoted text clipped - 6 lines]
>
> I would really appreciate any help