Page Rank

Subscribe

Categories

Recent posts

Alexa Rank

Make ctrl A to select all text in VB


  • This topic explains about, how to make ctrl A to select all text in TextBox in VB programming.

Make ctrl A to select all text in VBWorking

  • When the TextBox’s KeyPress event sees the Ctrl-A key code (1), it casts the event’s sender into a TextBox and calls the TextBox’s SelectAll method.
  • The code then sets e.Handled to True to indicate that the character has been handled.
  • This prevents the TextBox from beeping.

Control.KeyPress Event Make ctrl A to select all text in VB

  • Control.KeyPress Event occurs when a key is pressed while the control has focus.
  • The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and KeyUp events.
  • Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.

Namespace:  System.Windows.Forms

Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

  • Syntax for Control.KeyPress Event

DirectCast Make ctrl A to select all text in VB

  • DirectCast introduces a type conversion operation based on inheritance or implementation.
  • DirectCast does not use the Visual Basic run-time helper routines for conversion, so it can provide somewhat better performance than CType when converting to and from data type Object.
  • You use the DirectCast keyword the same way you use the CType Function and the TryCast keyword.

TextBoxBase.SelectAll Method Make ctrl A to select all text in VB

  • Help to select all text available in TextBox

Namespace:  System.Windows.Forms

Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

Make ctrl A to select all text in VBComplete Code


VB Files and Directory VB WORD
VB Path Class How to insert picture in Excel using VB
Save the image to system from PictureBox in VB How to insert Picture as Background image in Excel using VB
Read text file and write text file in VB Create Excel Chart in VB.NET PictureBox
How to append file using vb Export Excel chart to Picture file using VB
How to read file in vb Draw chart in Excel using VB programming
Create and write file using vb.net Create an Excel file from XML file using VB
Different file operation in vb.net Save the image to system from PictureBox in VB
Count files in Directory using vb.net Working of Font Dialog in VB
BinaryWriter in VB.NET Working of SaveFileDialog Component in VB
BinaryReader in VB Make ctrl A to select all text in VB
How to create numeric TextBox in VB
How to spell check in vb

Make ctrl A to select all text in VB

If you have any suggestion or doubts regarding this topic, please contact us…

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">