Solved

Closing exe problem

Posted on 1998-12-16
1
129 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
Visual Studio 2005 text editor 10 54
Excel Automation VBA 19 115
which modules are active in VB6 project? 6 56
SQL Server 2012 to SQL Server 2016 24 54
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

737 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