SetWindowPos don' work

Hi,
I'm using Access97, NT4.0. I need a form that maintains its topmost position even when it is deactivated. So I want to open other forms but my first forms to remain on top.
 I used SetWIndowPos on Load event of my form:
Call SetWindowPos(Me.hWnd, HWND_TOPMOST, 0, 0, 0, 0, FLAGS)

where Public Const HWND_TOPMOST = -1
Public Const FLAGS = SWP_NOMOVE Or SWP_NOSIZE Or SWP_NOACTIVATE

but it isn't work (when I open other form the fist form don't rest in top).
Regards
LVL 2
goyamAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Jim Dettman (Microsoft MVP/ EE MVE)Connect With a Mentor PresidentCommented:
I know this is not a direct answer to your question, but why not just set it's popup property to true?

Jim.
0
 
goyamAuthor Commented:
You are right. I haven't thought at that. It's the best solution for me.
 Thanks a lot.
0
All Courses

From novice to tech pro — start learning today.