?
Solved

Closing exe problem

Posted on 1998-12-16
1
Medium Priority
?
131 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 200 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

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…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

771 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