Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
2.75/5 (4 votes)
See more:
Hi,
i want when press ctrl+A any character in my textbox be selected
give ideal code tank's.
Posted

If you are using the standard C# toolkit textbox, this feature should already be built into it.
 
Share this answer
 
Comments
amirmohamad 19-Sep-12 6:10am    
I use visual studio 2010 and ctrl+A is not work for my textbox
Abhinav S 19-Sep-12 6:12am    
Try http://msdn.microsoft.com/en-us/library/system.windows.forms.textboxbase.selectall.aspx
amirmohamad 19-Sep-12 6:14am    
sometime work and sometime not
This is a known issue: "Select all" shortcut (ctrl-A) doesn't work in Multiline Textbox[^].

This site has a workaround you can use: Select All (ctrl+A) For A Textbox[^].

Hope this helps!

Regards,

— Manfred
 
Share this answer
 
v2
Comments
amirmohamad 20-Sep-12 3:45am    
Awesome, thanks for this
Manfred Rudolf Bihy 20-Sep-12 4:27am    
You're welcome!
I hope it works for you now.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900