Click here to Skip to main content
15,900,511 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
code of while pressing shift key textbox text will be change
Posted
Updated 10-Dec-10 4:16am
v2
Comments
JF2015 10-Dec-10 10:13am    
It is not clear what you want!
badprog 10-Dec-10 10:13am    
Do you want the code to change the text of a textbox control when the user presses the shift key?
Smithers-Jones 10-Dec-10 10:15am    
You are obviously not even capable of forming a meaningful full sentence, so what help would that code be to you anyway?
Sandeep Mewara 10-Dec-10 10:48am    
Not clear. Edit and update your question with more details like what you are trying to do with the issue faced.

well, it wasn't a great question, but all that you need to do is handle the KeyDown event and check e.Shift or if e.KeyCode = Keys.ShiftKey.

It's not that hard. Then, do whatever it is you want to do to the text based on whether or not shift is pressed.
 
Share this answer
 
Comments
hktloveme 7-Jun-11 6:46am    
but its not working in vb.net in form keydown
That's nice. What about it?
 
Share this answer
 

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