Solved

Closing exe problem

Posted on 1998-12-16
1
128 Views
Last Modified: 2010-05-03
I have created a MdiForm with its various child forms.When I run my exe on the top right hand corner I have my X button which closes the exe. This is fine when the Mdiform is shown I want the user to be able to exit this way but when I am in a child form and they want to cancel the screen they click this X button also. This then closes the exe but when I am in a child screen I only want to close that screen not the exe.
0
Comment
Question by:calis
1 Comment
 
LVL 1

Accepted Solution

by:
raycass earned 50 total points
ID: 1450557
Each child form should have thier own close button in the upper corner that will only close THAT child window. If your child windows have the close button disabled and all they see is the close button of the Midi parent window, then you will need to trap the close event of the Midi parent window by using the query_unload event of the Midi parent window, determine what child window is open and then close that window and cancel the application close.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question