Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Tagged as

ctrl + a for selecting all text in textbox

, 8 Nov 2012 CPOL
If you really need to handle the Ctrl+A, you wire key press event of text box to one event handler as shown below in form load. textBox1.KeyPress += new KeyPressEventHandler(CommonKeyPress); textBox2.KeyPress += new KeyPressEventHandler(CommonKeyPress);Then your function below...

Revisions


  

Compare Revision Minor Date Status Editor
2 - publicly available No 9-Nov-12 4:08 Available MT_
Event name
1 No 8-Nov-12 8:58 Available MT_

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

MT_
Technical Lead
India India
Tech lead working on Microsoft technologies (C#,VC++,ASP.Net,SQL etc) for about 15 years

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.141223.1 | Last Updated 9 Nov 2012
Article Copyright 2012 by MT_
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid