[AccessD] BringToFront

Darren DICK darrend at nimble.com.au
Thu Feb 1 18:40:42 CST 2007


Hi Drew

Thanks for the ASP email - I will review it (plus the million others I have from
Gurus on the list) soon

I tried the BringMeToTheFront code on a small clock that sits on the desktop

Works beautifully - Even sits on top of Task manager - hee hee

Many thanks
 
Have a great day
 
Darren
------------------
T: 0424 696 433

-----Original Message-----
From: Drew Wutka [mailto:DWUTKA at marlow.com] 
Sent: Friday, 2 February 2007 3:15 AM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] BringToFront

Well, did it do the trick?

Drew

-----Original Message-----
From: JWColby [mailto:jwcolby at colbyconsulting.com] 
Sent: Wednesday, January 31, 2007 4:10 PM
To: 'Access Developers discussion and problem solving'
Subject: Re: [AccessD] BringToFront

What do you mean it doesn't stick.  Will it stick long enough for the user
to click the button and cause that form to close? 


John W. Colby
Colby Consulting
www.ColbyConsulting.com

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka
Sent: Wednesday, January 31, 2007 5:00 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] BringToFront

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 Const
SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST =
-1 Private Sub PutMeOnTop()
    SetWindowPos Me.Hwnd, HWND_TOPMOST, 0, 0, 0, 0, _
    SWP_NOMOVE Or SWP_NOSIZE
End Sub

This will put the form in front of everything.  It doesn't 'stick' though.
Access forms are subclassed windows, so to put it truly always on top is a
little trickier.

Drew

-----Original Message-----
From: JWColby [mailto:jwcolby at colbyconsulting.com]
Sent: Wednesday, January 31, 2007 3:41 PM
To: 'Access Developers discussion and problem solving'
Subject: [AccessD] BringToFront

Is there a Bring To Front for a FORM?  I may have a series of progress
meters, which open modal, and as it happens centered and right on top of
each other.  I have devised a way to display an OK button which I display
the very last line as that process finishes IF I want the user to know that
a specific process finished.  The problem is that things being the way they
are, the one that is finishing may be physically hidden by another progress
meter on top.  I need to cause the progress meter that is displaying the "OK
to continue" to pop in front of anything else that may be currently
displayed.
 
John W. Colby
Colby Consulting
www.ColbyConsulting.com
 
--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com

-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
-- 
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