Solved

SetWindowPos don' work

Posted on 2000-02-25
2
381 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access Form - Button Format Issue 13 41
MS Access query 16 54
Outlook 2016 VB code syntax 4 29
Add a record to a table when enter value in a combobox 7 30
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

737 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