Jump to content
  • Advertisement
Sign in to follow this  
jagguy2

process keys

This topic is 3671 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

For the line in this code in this vb.net example Return MyBase.ProcessCmdKey(msg, keyData) 'what does this mean when you return paramaters that you have been passed. It doesnt seem to do anything? Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, ByVal keyData As System.Windows.Forms.Keys) As Boolean Select Case keyData Case Keys.Up pb3.Top -= 10 Case Keys.Down pb3.Top += 10 Case Keys.Left pb3.Left -= 10 Case Keys.Right pb3.Left += 10 End Select Return MyBase.ProcessCmdKey(msg, keyData) 'what does this mean ? End Function [Edited by - jagguy2 on July 26, 2008 11:49:02 PM]

Share this post


Link to post
Share on other sites
Advertisement
MyBase.ProcessCmdKey returns a value. Saying 'Return MyBase.ProcessCmdKey' means you are returning what ProcessCmdKey returned. Because this method overrides...MyBase.PrcoessCmdKey is calling the original method before its overridden.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!