CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2009
    Posts
    109

    Have to click the close button twice to close the form.

    All the forms in my application have to be closed twice before they actually close. I'm not sure why that is. Neither am I sure which part of the code I'm supposed to look at, to solve this problem. These forms are child forms of an mdiform. And the mdiform closes properly on the first click of the close button. Not sure what the problem is.

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

    Re: Have to click the close button twice to close the form.

    Look at the closing event and see if there is any code in it.
    Always use [code][/code] tags when posting code.

  3. #3
    Join Date
    Dec 2009
    Posts
    109

    Re: Have to click the close button twice to close the form.

    Quote Originally Posted by DataMiser View Post
    Look at the closing event and see if there is any code in it.
    FormClosed and FormClosing don't have any events attached to them.

Tags for this Thread

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