[AccessD] Access Form Outside The Application Container - Mak ing It Active Programmatically

DWUTKA at marlow.com DWUTKA at marlow.com
Mon Feb 23 09:57:20 CST 2004


 Try the AlwaysOnTop demo off of my site.  

Drew (http://www.wolfwares.com)

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
To: Access Developers discussion and problem solving
Sent: 2/22/04 11:18 PM
Subject: [AccessD] Access Form Outside The Application Container - Making It
Active Programmatically

    This relates to a minimized Access 2000 application, where one of
its forms is made to pop up on the desktop via API calls.

    Though everything proceeds as desired, the pop up form itself does
not get focus until clicked upon. Following API calls have been tried -
but no success in setting focus on the form -

    ShowWindow
    BringWindowToTop
    SetForegroundWindow
    SetActiveWindow
'    SetFocus                     ' Gives Compile Error

    Note - FlashWindow and SetWindowText if tried, do what is expected
but the focus gets lost eventually
        
    I shall be thankful for any help in this regard.

Regards,
A.D.Tejpal
--------------
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com



More information about the AccessD mailing list