How To Kill an Application with System Menu Using VB (168204)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q168204 SUMMARY
Microsoft Visual Basic for Windows can use the Microsoft Windows API
SendMessage function to close any active window that has a system menu
(referred to as the Control Box within Visual Basic for Windows) with the
Close option.
REFERENCES
For more information on the FindWindow and SendMessage functions, query on
the following words in the Microsoft Knowledge Base:
FindWindow and Visual Basic or SendMessage and Visual Basic
For information on a different sample application that returns assorted
information for a windowed application, please see the following article in
the Microsoft Knowledge Base:
112649
: How to Get a Window's Class Name and Other Window Attributes
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbhowto KB168204 |
---|
|