Search:
Namespaces
Discussions
.NET v1.1
Feedback
trapping Ctrl-A
Messages
Related Types
This message was discovered on
ASPFriends.com 'winforms-cs' list
.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
dave wanta (VIP)
hi all,
I have a multi-line text box, and I would like to offer the user the capability of using the Ctrl-A shortcut to select all the text.
How do I trap the Ctrl-A keypress?
Thanks,
Dave
Reply to this message...
dave wanta (VIP)
after I sent this.. i figured it out..
answered my own question.
if ( (e.Control) && (e.KeyCode==Keys.A))
{
TextBox
.SelectAll();
}
Cheers!
----- Original Message -----
From: dave wanta
To: winforms-cs
Sent: Sunday, May 26, 2002 4:48 PM
Subject: [winforms-cs] trapping Ctrl-A
hi all,
I have a multi-line text box, and I would like to offer the user the capability of using the Ctrl-A shortcut to select all the text.
How do I trap the Ctrl-A keypress?
Thanks,
Dave
| [winforms-cs] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/winforms-cs.asp
= JOIN/QUIT
Reply to this message...
System.Windows.Forms.TextBox
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com