Solved

Delphi Programming question

Posted on 1997-09-11
1
152 Views
Last Modified: 2010-04-04
I would like to now how to close win95, when the user closes/exits my delphi program.
0
Comment
Question by:LPD
1 Comment
 

Accepted Solution

by:
seitza earned 20 total points
Comment Utility
There are a few ways to do this.  
In your exit routine handler, you could post a message to the Program Manager, to close Win 95.
1.  First obtain a handle to the Program Manager Window - several ways of doing this.  For 50 points, I won't bore you with the details.
2.  Do either
     a) PostMessage(TheWindow, $10,0,0); where TheWindow is the handle obtained in 1.
    b) use one of the many 'Sendkeys' functions to send the keystroke
         Alt-<F4> to the Program Manager Window
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Windows Drag & Drop Location 2 85
Mydac connection data base issue 3 106
Internet Explorer View Settings Question 15 99
Printing problem 2 72
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

772 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

12 Experts available now in Live!

Get 1:1 Help Now