Private Sub TextBox1_Enter(ByVal sender As Object, ByVal e As
System.EventArgs) Handles TextBox1.Enter
TextBox1.SelectAll()
End Sub
so does if you wanted to add extra textboxes onto the end of the event
statement
Private Sub TextBox1_Enter(ByVal sender As Object, ByVal e As
System.EventArgs) Handles TextBox1.Enter
sender.SelectAll()
End Sub
-----Original Message-----
From: Abraham Luna [mailto:abe@a...]
Sent: 18 September 2000 20:59
To: pro_VB_dotnet
Subject: [pro_vb_dotnet] simple question
when the user enters a textbox, i want all the text in it to be selected for
them. this code does not work:
Private Sub PriceFields_Enter(ByVal sender As Object, ByVal e As
EventArgs) Handles BoughtPrice.Enter
Dim tmpTextBox As TextBox = CType(sender, TextBox)
tmpTextBox.SelectAll()
End Sub
can anyone help
---------
i'm using visual studio .net on windows 2000 pro
---
Visual Basic .NET Text Manipulation Handbook
The .NET Framework brings a variety of string manipulation features
to the VB language, and some of these, namely regular expressions
and the StringBuilder class, are something VB 6 developers may not
have seen before. This book teaches you how to manipulate text using
these string matching, manipulation, and replacement classes. Issues
such as Localization and data conversion will also be investigated.
http://www.wrox.com/ACON11.asp?ISBN=1861007302