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

Thread: msflexgrid

  1. #1
    Guest

    msflexgrid

    Can somebody give an advise why keydown event of the grid does not work for arrow keys and PageUp, PageDown. How to make it work?


  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: msflexgrid

    Annoying isn't it ? It's actually documented (somewhere) in the documentation / MSDN.

    You can get around this in two ways (that I've found) -

    - Place a textbox behind the Grid and use the keydown/press events there to capture the keystrokes (ie. set focus the the textbox when the grid get's focus)

    - SubClass the control and capture the keystrokes yourself (quite a bit of work if I remember correctly).


    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

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