How to prevent multiple instances of a 32-bit VB application (185730)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q185730 SUMMARY
This article describes how to avoid loading a second instance of an
application when the user already has one instance running. It also sets
the focus to the first instance of the Visual Basic application when
you attempt to start a second instance of the same application.
REFERENCES
For more information about preventing multiple instances of a Visual Basic 4.0 16-bit application, click the following article number to view the article in the Microsoft Knowledge Base:
142937
How to prevent multiple instances of a VB application
Modification Type: | Major | Last Reviewed: | 5/3/2005 |
---|
Keywords: | kbhowto KB185730 |
---|
|