PRB: VB 3.0 AppActivate Fails on 32-Bit Windows NT ApplicationLast reviewed: June 21, 1995Article ID: Q109262 |
The information in this article applies to:
- Standard and Professional Editions of Microsoft Visual Basic for Windows, version 3.0
SYMPTOMSVisual Basic's AppActivate statement fails to make a 32-bit application the active window under Windows NT. To reproduce this behavior under Microsoft Windows NT, run Notepad (NOTEPAD.EXE). Then run the following code in Visual Basic:
Sub Form_Load () AppActivate "Notepad - (Untitled)" End SubVisual Basic fails to give focus to the Notepad session.
CAUSEUnder the 32-bit Windows NT system, 16-bit Windows-subsystem applications may not be fully available to other 16-bit programs. Visual Basic version 3.0 is a 16-bit program originally designed for the 16-bit Windows operating environment, so this behavior is by design.
WORKAROUNDTo work around this behavior, use the FindWindow and SetWindowPos Windows API functions as follows:
STATUSThis behavior is by design. It is under review and will be considered for enhancement in a future release of Visual Basic.
|
Additional reference words: 3.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |