Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set the value of e.keycode

Status
Not open for further replies.

kulfanumber

Programmer
Jun 24, 2009
21
PK
When i set the value of e.keycode to zero in keydown method of rtb i get an error that e.keycode is readonly. How can i set the value of e.keycode?
 
You cant set it, it is readonly property. You sould use if statement or select case statement to see what key was pressed (e.g. If e.KeyCode = Keys.Alt Then ...) and execute a code block.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top