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

    Talking Capturing key press in a UserControl

    I have a UserControl defined that has one TableLayoutPanel. The TableLayoutPanel has 1 column and 3 rows with 1 Label in each row.

    I need to do the following:
    1) Determine when the Control is left-clicked
    2) Determine if a key has been pressed when the Control is left-clicked and which key is pressed.

    I can do 1) but can't seem to have any success for 2)

    Any ideas?

    Thanks

    -Mike

  2. #2
    Join Date
    Jul 2014
    Posts
    2

    Re: Capturing key press in a UserControl

    Hi, how're you?
    You can implement IMessageFilter on TableLayoutPanel
    Example http://www.codeproject.com/Articles/...eric-filter-fo

    regards

    Victor

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