Click here to Skip to main content
12,883,390 members (42,227 online)
Click here to Skip to main content

Tagged as


Posted 8 Nov 2012

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...



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


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


About the Author

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...

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