CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2012
    Posts
    13

    Mouse Move to Exit Program

    If you start the Windows "Start" button , a menu popup. When you move the mouse away the menu and have a click on the empty space of the desktop , the "Start" menu will exit.

    How can I exit my program in the same way ?

    Thanks for everybody

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Mouse Move to Exit Program

    Probably don't want to exit each time the form 'Loses Focus' which is what the SM does
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Oct 2012
    Posts
    13

    Re: Mouse Move to Exit Program

    Quote Originally Posted by dglienna View Post
    Probably don't want to exit each time the form 'Loses Focus' which is what the SM does
    I really don't understand what you mean !

    Would you mind to write me the project I want ?

    Thanks

  4. #4
    Join Date
    Oct 2012
    Posts
    13

    Re: Mouse Move to Exit Program

    I don't understand what you mean

    Would you mind to write me the project I want ?

    Thanks

  5. #5
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Mouse Move to Exit Program

    Most of us are not here to write a project for you, we are willing to help in many cases but not do it for you.

    I agree that a program that exits when it looses focus would have very limited uses. I can't think of anything I would want to do that other than a dropdown/popup menu system
    Always use [code][/code] tags when posting code.

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