Hi all today i will be showing u all how to select all text in a textbox and also how to make a ur text scroll in the textbox
Here are all the codes:
Alright so first of all, u insert one textbox in your form and then u go into the events and choose Keypress event of the textbox and in the code u type in:
Codes:
Public Class Form1
Private Sub TextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
If e.KeyChar = Convert.ToChar(1) Then
DirectCast(sender, TextBox).SelectAll()
e.Handled = True
End If
End Sub
End Class
_________________________________________________________________________
Here is the video tutorial:
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2010
(13)
-
▼
April
(6)
- Textbox - Select All (Ctrl+A) and Scroll Visual Ba...
- Run Program on Windows Startup Tutorial Visual Ba...
- Email Validation Entered Into Textbox Tutorial Vis...
- Visual Basic Send Email - Smtp Tutorial - {VB.net}
- How to make form move Borderless (No Title Bar) Vi...
- Listbox Tutorial - Add, Remove Item, Save, Reload ...
-
▼
April
(6)
No comments:
Post a Comment