CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2009
    Posts
    20

    Question KeyData to KeyValue ?

    how can we convert a Keys.KeyData to key code any suggestions .....

  2. #2
    Join Date
    Dec 2002
    Location
    at home and at office :D
    Posts
    126

    Re: KeyData to KeyValue ?

    ...why not as Microsoft advises..?
    You can use constants from Keys to extract information from the KeyData property. Use the bitwise AND operator to compare data returned by KeyData with constants in Keys to obtain information about which keys the user pressed. To determine whether a specific modifier key was pressed, use the Control, Shift, and Alt properties.
    http://msdn.microsoft.com...keyeventargs.keydata
    or did I get u wrong?
    Better ask and make a rhyme
    than search dead threads for a long time.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured