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
2
votes
3 answers

How to set a window to be topmost in Powershell?

Can you point me how should I set a window to be topmost in Powershell? I used this code: $form.TopMost = $True And this works almost perfect. The problem I have is that there are two topmost windows and for some reason my form sometimes gets…
ppiotrek
  • 55
  • 2
  • 2
  • 8
2
votes
1 answer

Always on top, even in fullscreen-games

How do you put a Windows Form Application on top off everything on your screen? Just setting the topmost-property isn't enough when you're running fullscreen games. If anyone has a solution for good old Forms i'll also be happy I've seen many posts…
user3332706
2
votes
2 answers

Adding subview and then keep it visible on top across app

Background and Aim: In my existing app, I'm trying to provide voice messaging feature to user. The idea is to optionally provide universal access of voice messaging from anywhere in the app to the user (inspired by facebook messages). I have had…
Ashok
  • 6,224
  • 2
  • 37
  • 55
2
votes
1 answer

Toggling TopMost in VB.NET

I have a form that has to be on top for a period of time, and then can be set behind other windows normally. Is there anything in addition to setting Me.TopMost to True or False that needs to be done? I ask because it doesn't seem to be working.
Shawn
  • 2,356
  • 6
  • 48
  • 82
2
votes
0 answers

TOPMOST(SetWindowPos(, HWND_TOPMOST, ..)) does NOT work on IE9 or Vista/Win7?

For some special needs, I've coded an ActiveX control(dll) making the IE browser window containing it the TOPMOST window. ::SetWindowPos(pWndWb, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE|SWP_SHOWWINDOW); The only problem is that this does…
shook
  • 29
  • 2
1
vote
2 answers

Windows.Form topmost called from a workerthread doesnt work when ClickOnce is enabled and published

I have a main thread that is a form, that starts another application, in this case Notepad, then I spawn off a BackgroundWorker that waits for Notepad to be closed. When its closed, the BackgroundWorker shows another Form to display, topmost, to…
Tizz
  • 820
  • 1
  • 15
  • 31
1
vote
2 answers

Is there a way to guarantee that internet explorer will alway be the topmost window?

I'm trying to force an internet explorer window to be TOPMOST. No other windows should show on top of the internet explorer window. I have to use internet explorer. I'm also running this in Windows 7. Apparently that makes a difference but all the…
dlee777
  • 11
  • 2
1
vote
0 answers

Window.Topmost=false does not reliably stop topmost-behavior

I am looking for a way to work around what I think is a bug with WPF. This is the most simplified example of the issue. Clearly in this case it defeats the purpose of Window.Topmost but it makes the issue very plain. In implementing a…
Josh Sutterfield
  • 1,943
  • 2
  • 16
  • 25
1
vote
2 answers

Window message sent to my topmost form/window when the taskbar/start menu is over it?

I have a C# Windows Forms program, in Windows 7, but I think it applies to any Windows program. The main form of my program covers the entire screen, and has the Topmost property set. However, when I click the Start key to open the Start menu for…
TechAurelian
  • 5,561
  • 5
  • 50
  • 65
1
vote
1 answer

Make a control topmost in WPF

I have a form where the user can select various form elements and drag them around. Since the user can customize the layout of the form I am using a canvas and all of the elements are children of it. When two elements are in the same region…
WPFNewbie
  • 2,464
  • 6
  • 34
  • 45
1
vote
1 answer

How to make my WPF app to be on top of everything, even the Windows taskbar (like Windows clock app)?

I made a little timer app using WPF and I wanted to put my app on the taskbar, but when I click anywhere on the taskbar, my app loses focus and the taskbar comes on top of my app, even though I have Topmost=True in the XAML code. How my app…
bzmind
  • 386
  • 3
  • 19
1
vote
1 answer

C# code works in IDE but not in generated exe

I am trying to open an always on top form from a system tray application, basically for showing some instant notifications. For achieving always on top behavior, I followed the instructions in the reference1 and reference2. The code in the…
1
vote
2 answers

How to forbid users to close the form? (MS VS C# 2010)

Possible Duplicate: How to Disable Alt + F4 closing form? Help me pls. How to make a modal form, that closes only from program code. I want to prevent form closing when user presses Alt+F4 etc. I'm using MS VS C# 2010.
Artem
  • 11
  • 1
1
vote
1 answer

Dialog Box not topmost while owner docked app bar is topmost

I have a docked app bar and when you log out, a modal login dialog box is shown. What I really want is to click on the app bar and have the login box become activated. To do this, I made the app bar the owner of the login dialog box. However, I want…
brigid
  • 13
  • 2
1
vote
1 answer

C# - Show form under other applications

Is it possible to create a form that always remains under other applications? Because the following property exists: this.TopMost = true; but there is no property like: this.BottomMost = true; Each time the user clicks on the form, it is not…