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.

170 questions
1
vote
1 answer

How to hide topmost window when rdp session is active

I wrote a .NET winform app and set TopMost property to true. But I found that when I loggin to a remote destop, the window is still showing. How to detect whether I'm in remote destop(remote desktop is active, typing/working in remote desktop) using…
prime23
  • 3,362
  • 2
  • 36
  • 52
1
vote
1 answer

Have File Explorer Current working Directory Passed to PowerShell Script

Good Afternoon All! Working on a script that my co-workers use, we move a lot up to Sharepoint and the objective was to make an easy method to set the file to read-only and compress it using the built-in NTFS compression. All of that is functioning…
MrAdmin
  • 37
  • 3
1
vote
1 answer

How to prevent the current window from losing focus when clicking a system tray icon

I'm writing a C# Windows Forms app for Windows 10, similar to the system virtual keyboard. The app is topmost and it doesn't steal focus by overriding CreateParams and ShowWithoutActivation: private const int WS_EX_NOACTIVATE =…
Max
  • 23
  • 7
1
vote
2 answers

Linq To SQL Select parent row and topmost Child Table row

There are examples around for this in SQL and I understand them, but I can't seem to wrap my head around it in Linq-SQL. There are two tables, 'Accounts' and 'AccountTransactions' related by the primary key in Accounts, which is, surprise,…
Serexx
  • 1,232
  • 1
  • 15
  • 32
1
vote
3 answers

Why does TopMost=True not always work?

I have a simple app which is small and is supposed to float on top of all my other windows. After a few hours, I'll notice it is no longer on top of all my other windows and I was wondering if anyone knew why this happens. During this time I have…
Rachel
  • 130,264
  • 66
  • 304
  • 490
1
vote
2 answers

VB6 - How to make the form second top most?

I used the following VB6 code, Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Private Const…
Codename K
  • 890
  • 4
  • 23
  • 52
1
vote
2 answers

R - Find three top values based on other column

I have a data frame (but could be data table too) with the fraction of vegetation types (first column "type") in multiple sites (remaining columns "a" to "l"). This is what it looks like: dat <- structure(list(type = structure(1:17, class =…
thiagoveloso
  • 2,537
  • 3
  • 28
  • 57
1
vote
3 answers

Tkinter window at the bottom all the time

I already know tkinter.Tk().attributes("-topmost", True) which makes the window stay on top all the time. But is there some way to make the window stay at the bottom all the time? I mean something like tkinter.Tk().attributes("-bottommost", True) or…
Jakub Bláha
  • 1,491
  • 5
  • 22
  • 43
1
vote
1 answer

Restoring 'TopMost' window behavior after 'full screen mode' has ended (.NET)

I have a (Windows Forms) application that consists of a single window with the "TopMost" property set. If an application (e.g. PowerPoint) temporarily enters full screen mode the "TopMost" behavior of my window is not restored (i.e. it will remain…
Peter
  • 11
  • 1
1
vote
1 answer

In C# WPF window, adding button for topmost beside standard window buttons

I'd like add a button for changing window state to topmost to the built-in window buttons such as maximize, minimize, and close [please refer to this pic.] However, I'm having hard time finding the way out as WPF seems not to provide such an API. I…
Ikjun Jang
  • 11
  • 3
1
vote
2 answers

In an app with multiple top-level forms, how do you prevent the user from thinking it locked up due to a modal dialog?

Normal WinForms behavior with modal dialogs seems problematic in apps with multiple top-level windows. I am curious if anyone has developed a more effective approach. Let me explain… Situation: When you do dialog.ShowDialog(parent), any attempt by…
Brian Kennedy
  • 3,499
  • 3
  • 21
  • 27
1
vote
1 answer

pyqt5 can not close a topmost fullscreen qdialog on mac osx

I am writing an app that can take a screenshot on osx 10.9.5 using pyqt5; code sample is like this: import sys from PyQt5 import QtWidgets,QtCore,Qt from PyQt5.Qt import QApplication class CScreenshot(QtWidgets.QDialog): def __init__(self): …
Alen Chow
  • 143
  • 1
  • 8
1
vote
1 answer

Stop being topmost window

My window should be on top of a specific "target" window that I don't have control over. When the target window is activated, I call SetWindowPos with HWND_TOPMOST to place my window on top of it while the target can still be the active window. When…
typ1232
  • 5,535
  • 6
  • 35
  • 51
1
vote
2 answers

Bring a UI Element to foreground

I would like to implement simple drag and drop with: public void OnDrag (PointerEventData eventData) { transform.position = eventData.position; } The problem is that when i begin the drag, I want to bring the UI Element to the foreground. by…
1
vote
1 answer

Make a Form "more TopMost" than another

I have a WinForms application with 2 Forms. Both are TopMost, but I would want to have one of them to always be on top of the second one. It's something like "even more TopMost. Is this possible? Calling BringToFront() in a timer causes the form to…
bytecode77
  • 14,163
  • 30
  • 110
  • 141