Folgendes Szenario: Wie lässt sich das Fokus-Problem nun umgehen? Option Explicit ' benötigte API-Deklarationen Private Declare Function SetWindowPos Lib "user32" ( _ ByVal hwnd As Long, _ ByVal hWndInsertAfter As Long, _ ByVal x As Long, _ ByVal y As Long, _ ByVal cx As Long, _ ByVal cy As Long, _ ByVal wFlags As Long) As Long Private Declare Function ShowWindow Lib "user32" ( _ ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Private Const HWND_TOPMOST As Long = -1 Private Const SWP_NOACTIVATE As Long = &H10 Private Const SWP_NOMOVE As Long = &H2 Private Const SWP_NOSIZE As Long = &H1 Private Const SW_SHOWNOACTIVATE = 4 ' Form anzeigen, ohne dass diese den Fokus erhält Load frmInfo ShowWindow frmInfo.hwnd, SW_SHOWNOACTIVATE SetWindowPos frmInfo.hwnd, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOACTIVATE + SWP_NOMOVE + SWP_NOSIZE Dieser Aufruf der Form bewirkt, dass diese im Vordergrund angezeigt - aber doch im Hintergrund, d.h. die Form ist sichtbar, aber nicht aktiviert |