How To Check For a Running Instance of Word 95 From VB (168751)
The information in this article applies to:
- 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 for Windows 4.0
- Microsoft Visual Basic Professional Edition for Windows 4.0
- Microsoft Visual Basic Enterprise Edition for Windows 4.0
- Microsoft Word for Windows 95
- Microsoft Word for Windows 95 7.0a
This article was previously published under Q168751 SUMMARY
Microsoft Word 95 does not appear in the Windows running objects table and
does not use Visual Basic as its macro language. This makes Microsoft
Word 95 difficult to detect from a Visual Basic application. This article
illustrates a technique that involves looping through all Windows and
checking for the "Microsoft Word" sub-string at the beginning of the title
bar.
REFERENCES
Win32 Programmer's Reference Volume 3 (Microsoft Press)
For additional information, please see the following articles in the
Microsoft Knowledge Base:
72918 How VB Can Determine if a Specific Windows Program is running
147659 How to Get a Window Handle Without Specifying an Exact Title
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbhowto kbProgramming kbWndw KB168751 |
---|
|