IT Community - Software Programming, Web Development and Technical Support

keycontrols in C#

This is a discussion on keycontrols in C# within the C# Programming forums, part of the Software Development category; im trying to move a character around a screen. i cant seem to find the right code that will recognise ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-13-2008, 05:12 PM
sweet12 sweet12 is offline
D-Web Trainee
 
Join Date: Jul 2008
Posts: 3
sweet12 is on a distinguished road
Default keycontrols in C#

im trying to move a character around a screen. i cant seem to find the right code that will recognise the key being pressed down. my current code is something like;

if(this.KeyDown += Keys.w)
Character.position.Y = position.Y+1;
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 06:12 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0