Results 1 to 2 of 2

Thread: keydown can only be done when form is visible

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Singapore
    Posts
    4
    right??? then how about when my prog is minimized...

    any commands same as keydown and allows minimized forms as well

    anyone knows what i am talking here???

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    The form itself has to actually be the "active" form to receive the focus of the keypresses.

    When it is invisible you wont even see it in the TaskBar which means it is not active.

    When you are minimized it DOES exist in the taskbar and probably is still highlighted meaning it is still the active form (even though minimized).

    There is a difference between a form being "Visible = False" because it hasn't loaded yet, "Visible = False" because it will not be shown as a normal window and "Visible = False" as in it HAS been shown and is just minimized.

    Bottom line is that without something to take the focus it cannot process the event. How does it know you WANT the keypress to be processed or if you are trying to tell the OS or another application something?

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