Questions tagged [windowstate]

70 questions
1
vote
0 answers

PyQt5 can't delete flag WindowStaysOnTopHint under Ubuntu 18.04

I'm trying to make a button which would place window on top of others. Using recommends from other questions, I put in my class setWindowFlags(self.windowFlags() | QtCore.Qt.WindowStaysOnTopHint) to set and setWindowFlags(self.windowFlags() &…
Artem
  • 563
  • 3
  • 17
1
vote
3 answers

C# Will "WindowState.ToString" change between cultures

Take the following code for example; if (Convert.ToString(frm.WindowState) == "Minimized") Layout.WindowState = "Maximized"; else Layout.WindowState = Convert.ToString(frm.WindowState); We are analysing the string definition…
Helios
  • 421
  • 1
  • 7
  • 12
1
vote
2 answers

Something like RestoreBounds for WindowState

I have an application that is starting minimized. I can set RestoreBounds to set to which size will the window restore when user restores it. But how can I set if the form should restore to maximized or normal state? Normal is by default. I wish…
Jiri
  • 264
  • 4
  • 17
1
vote
1 answer

Excel interop: Restore minimized window

In my winforms app interacting with Excel through the com interop, I'm trying to attach to an existing Excel process if there is one. Getting the object seems to work well, but if the Excel application is minimized (which is quite likely in my use…
chiccodoro
  • 14,407
  • 19
  • 87
  • 130
1
vote
1 answer

VB.NET - Move form to next monitor and maximise

Does anyone know how to move a form to the next window to the right (or cycle around if current monitor is the last one) and maximize it? I've been playing around and written some code (self taught, so please be kind) which moves the form if it is…
1
vote
1 answer

C# WPF: How to maximize a window when it's dragged to the top of the screen

So I have a WPF application that maximizes window when it's dragged to the top of the screen. However, I'd like to change a property, and because of that I think it would be best If I create my own drag maximize properties. What's the easiest way to…
user3410566
  • 45
  • 2
  • 15
1
vote
3 answers

Swing - windowStateChanged event trouble

I have a JFrame where some elements (one, for now) have to be centered manually on the contentPane when resizing the window or changing the window state. Resizing event (componentResized) works fine but the windowStateChanged event is causing…
Venom
  • 1,107
  • 4
  • 21
  • 46
1
vote
6 answers

Using C# FormWindowState to restore up?

I'd like to detect if my application is minimized under certain situations, and if it is, the window needs to be restored. I can do that easily as follows: if(this.WindowState == FormWindowState.Minimized) { this.WindowState =…
We Are All Monica
  • 13,000
  • 8
  • 46
  • 72
1
vote
1 answer

Listener that has events for when a frame is snapped to the left or right of screen

I know WindowStateListener will tell me if a component is maximized vertically, horizontally, or both. At least, it says it will. I do not know how to maximize a window exclusively horizontally or exclusively vertically outside of snapping the…
Lucas
  • 1,149
  • 1
  • 9
  • 23
1
vote
1 answer

C# FormWindowState.Normal not to steal focus

I have a Windows Form Application that will go to system tray when it is minimized. When I received a message to pop-up my application it will call ShowWindowFromTray() function. I do not want to steal focus on the application that has the focus…
1
vote
5 answers

Form starts minimized

I have 3 forms - the main form is Form1 the others are a splash form and then a login screen. Splash screen displays first and populates servers. Then, the frmAppLogin is shown, user enters a hardcoded password and result returns to form1. public…
k1f1
  • 433
  • 3
  • 8
  • 16
0
votes
1 answer

WPF windowstate

form does'nt open in maximum size even though I set in wpf enter image description hereenter image description here
SEFA TAS
  • 1
  • 1
0
votes
1 answer

Opening Word Document From Excel

I am trying to use VBA to open a specific word document when I click on a button in my excel spreadsheet. I want to actually go into the document. I then want to change the size of the window to "Restore Down". Essentially the word window should…
0
votes
2 answers

How to use windows.WindowState API (JavaScript)?

I like to use the windows.WindowState API, but got the error "windows is not defined". const windowState = windows.WindowState; I am developing a WebExtension, which makes use of the speech synthesis API. The problem with it is, when speech is…
PjotrC
  • 311
  • 1
  • 6
  • 16
0
votes
2 answers

C#: capture windowstate changes of another application (wrote in c/c++ i think)

I have a situation where I need to capture windowstate changes of another window (which is not owned by my application and I didn't wrote it. I think it's written in C++). Actually I'm using a separate thread where I constantly do GetWindowState and…
Francesco Belladonna
  • 11,361
  • 12
  • 77
  • 147