Make a form behave like a menu

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Logan1337
    New Member
    • May 2007
    • 38

    Make a form behave like a menu

    Hi. Does anyone know how to make a windows form behave like a menu, such that it closes if the user clicks anywhere away from it?

    It would also be nice if the window didn't steal the focus from the parent form, but this isn't necessary.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by Logan1337
    Hi. Does anyone know how to make a windows form behave like a menu, such that it closes if the user clicks anywhere away from it?

    It would also be nice if the window didn't steal the focus from the parent form, but this isn't necessary.
    So you want the Form to close when it loses focus?
    Doesn't that translate this to the problem of finding and overriding the evnt that is fired when a Form loses focus?

    Comment

    • Logan1337
      New Member
      • May 2007
      • 38

      #3
      Yes, actually that will work just fine!

      Comment

      Working...