Solved

Closing exe problem

Posted on 1998-12-16
1
125 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now