Click here to Skip to main content
12,353,249 members (71,892 online)
Click here to Skip to main content

Tagged as

Stats

0 views
Posted

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

You may also be interested in...

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