Results 1 to 4 of 4

Thread: MDI and keydown event

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2010
    Posts
    4

    MDI and keydown event

    my child form is a game that allows user to move using keydown event (arrow key left and right). But when i import it to MDI, keydown event doesn't work anymore. Am i missing something here?

  2. #2
    Addicted Member
    Join Date
    Dec 2006
    Posts
    207

    Re: MDI and keydown event

    Just a suggestion, try using the MDIForm.KeyPress rather than the GameForm itself and see if that works.
    Rate me if my response helped you. If not, I accept charity Rates as well.

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2010
    Posts
    4

    Re: MDI and keydown event

    Thanks for the hint, but it doesn't work
    i tried show two child form at the same time and press Left and Right key
    it switches between child form, i think this is the problem.
    Any solution?

  4. #4
    Lively Member
    Join Date
    Dec 2006
    Posts
    81

    Question Re: MDI and keydown event

    Hai,
    Set the Keypreview property of ur child form to true.

    I think it will WORK.

    But i donot know how make a form as child form of MDI parent help me
    Last edited by vpm_sampath; May 31st, 2010 at 03:30 AM.

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