Questions tagged [topmost]

Topmost is a universal term describing the object that is displayed on top of the others. It is usually used in connection to windows in Desktop Environments.

Topmost as a term is used to describe object with the highest z-index value. The object can be either a window (in Desktop Environment) or a HTML Element (on websites). Unlike modal, topmost allows window switching and manipulations. An example of modal window is Window's Task Manager, which stays on top by design.

161 questions
69
votes
19 answers

How to make a WPF window be on top of all other windows of my app (not system wide)?

I want my window to be on top of all other windows in my application only. If I set the TopMost property of a window, it becomes on top of all windows of all applications and I don't want that.
Sylvain
  • 18,671
  • 22
  • 89
  • 141
59
votes
7 answers

WPF Always On Top

Is it possible to make a window stay always on top even when other application is running on Fullscreen? I'm using right now TopMost = true but when other application is running on fullscreen mine becomes invisible. It's WindowStyle = None window by…
Kuba Wasilczyk
  • 1,038
  • 3
  • 10
  • 18
48
votes
5 answers

Why isn't MessageBox TopMost?

I recently found out that by default MessageBoxes were not the top most form when displayed by default and I was wondering if anyone knew any circumstances when you wouldn't want the messagebox to be shown on top of other windows? I found the issue…
Sayse
  • 38,955
  • 14
  • 69
  • 129
38
votes
4 answers

How to return 5 topmost values from vector in R?

I have a vector and I'm able to return highest and lowest value, but how to return 5 topmost values? Is there a simple one-line solution for this?
pixel
  • 21,352
  • 30
  • 113
  • 196
20
votes
7 answers

Opening a WinForms Form with TopMost = true but not having it steal focus?

I have a form that pops up on a user's screen and has TopMost=true, but it steals the focus. How can I get it to not steal focus when it first appears?
sooprise
  • 20,955
  • 62
  • 180
  • 265
17
votes
4 answers

Set a window to be topmost

I am trying to keep my window on top of the all others. I am new to C++ Win32 programming. This is my initialization of my window in WinMain: hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL,…
Victor
  • 11,135
  • 16
  • 65
  • 128
12
votes
4 answers

WindowsFormsHost is always the most top from WPF element

how to set the z-index windowsformhost that they are not always at the top of the WPF element ?
Andy Kurniawan
  • 121
  • 1
  • 2
  • 6
11
votes
3 answers

Setting an XAML Window always on top (but no TopMost property)

I am developing an application based on OptiTrack SDK (from NaturalPoint). I need to run the application window as "Always on Top". The window is designed in XAML and is controled in the class "CameraView" but it does not seem to include a "TopMost"…
Brian Scherady
  • 119
  • 1
  • 1
  • 3
11
votes
2 answers

WPF-Window Topmost for own application only?

The Splashscreen/Loading-Window in my WPF application is set to Topmost="True". Now this windows in on top of all other windows even when you switch to another application (because loading will take some time). I don't want this kind of behavior. If…
TalkingCode
  • 12,759
  • 27
  • 96
  • 141
9
votes
3 answers

TopMost form in a thread?

I am using the following code to open a form in a new thread: private void button1_Click(object sender, EventArgs e) { Thread thread = new Thread(ThreadProc); thread.Start(); } public void ThreadProc() { Form form = new Form(); …
syncis
  • 1,287
  • 3
  • 22
  • 42
9
votes
3 answers

How to make a window appear on top of everything (even full screen games!) c++/Qt

I'm trying to make an application displaying a crosshair at the center of the screen and staying on top of everything else. The aim is to have a crosshair in some FPS games that doesn't provide one. I've succesfully made my window topmost for…
pogdhu
  • 107
  • 1
  • 2
8
votes
5 answers

How to get the handle of the topmost form in a WinForm app?

I have a WinForm app that has other child forms (not mdi). If the user presses "Esc" the topmost form should be closed even if it doesn't have the focus. I can use a keyboard hook to globally catch the Escape but I also need the handle of the form…
tzup
  • 3,434
  • 2
  • 22
  • 33
7
votes
1 answer

Top most even for Modern Apps

I have a recording program that stays TopMost all the time except when I open a Modern app (Windows 8) or the Start Screen. It is possible to make a desktop application stay on top of modern apps, like the Magnifying Glass tool: Now, the problem is…
Nicke Manarin
  • 2,294
  • 1
  • 24
  • 59
7
votes
8 answers

C#, Windows Form, Messagebox on top not working

I've some MessageBox that I code like this: MessageBox.Show(new Form(){TopMost=true, TopLevel=True}, "Message","Title", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); For a better example, I do this for the FormClosing Event: private void…
Alice
  • 193
  • 2
  • 4
  • 16
6
votes
3 answers

Find the Handle of the window at the top of the screen

I want to check when the window of an external application (a Poker On Line Game Table) jumps over all other windows because it's my turn to play. The problem is that the Game table jumps in the foreground... but the window DOES NOT BECOME ACTIVE...…
ezio
  • 269
  • 2
  • 9
1
2 3
10 11