[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 214
  • Last Modified:

Keeping a form on top of another

Hi,

I am looking to have a form stay on top of another form which is currently active.  It would be somewhat like a tool window.  How can this be done?

Sincerely,
Razvan Loghin
0
razvanl
Asked:
razvanl
1 Solution
 
mcixCommented:
0
 
VBDesignsCommented:
Use the SetWindowPos API:

SetWindowPos frmMain.hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now