Solved

SetWindowPos don' work

Posted on 2000-02-25
2
378 Views
Last Modified: 2012-06-21
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
0
Comment
Question by:goyam
2 Comments
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 50 total points
ID: 2557935
I know this is not a direct answer to your question, but why not just set it's popup property to true?

Jim.
0
 
LVL 2

Author Comment

by:goyam
ID: 2557991
You are right. I haven't thought at that. It's the best solution for me.
 Thanks a lot.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question