CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2000
    Location
    london
    Posts
    16

    Msgboxes do but forms don't

    Is there a way to tell when a form is closed by the controlbox button?
    You know like the msgbox returning a value?

    Thanks in advance
    ivan


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Msgboxes do but forms don't

    you can trap the QueryUnload Event of the Form window.
    The Eventhandler takes an UnloadMode argument that tells you how the user closed the form. You could store that value in a global variable or....


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