Questions tagged [windowstate]

70 questions
3
votes
1 answer

How to show hidden TaskBar if WPF application is maximized

If the auto-hide of Windows 10 TaskBar is ON then when the app is running will cover it and there is no way to get to the TaskBar with the mouse cursor. Any way to solve this? mc:Ignorable="d" WindowState="Maximized" WindowStyle="None"…
fpuglap
  • 109
  • 1
  • 2
  • 15
3
votes
14 answers

Windows MDI child form doesnt open in WIndowMaximized state

I have set a form as a child of an MDI form which has its WindowState set to Maximized. When I open that form from an MDI container, it doesn't open in Maximized state. Why is this happening and how can I make it open maximized? This is how I am…
Sandeep Pathak
  • 10,567
  • 8
  • 45
  • 57
3
votes
2 answers

A program in C# to tell whether opened applications are in maximized mode or not

I would like to know whether any libraries are available in Windows OS which allows us to capture other applications window states
Sandhurst
  • 33
  • 2
3
votes
5 answers

How to change window state of Form, on a different thread?

Does anyone know how I can change the window state of a form, from another thread? This is the code I'm using: private void button4_Click(object sender, EventArgs e) { string pathe = label1.Text; string name =…
Joey Morani
  • 25,431
  • 32
  • 84
  • 131
2
votes
3 answers

.Net: maintain form windowState when navigate to different forms

In my application, user can navigate to one form to other and so on. So i want to maintain the WindowState of each form. My mean is that if form1 is in Normal mode then next form2 should be open in Normal mode and if form1 is in maximize mode then…
Rupesh
  • 7,866
  • 11
  • 41
  • 58
2
votes
1 answer

Two Windows in Electron / React Redux

What I Want Initially, mainWindow is visible and callWindow is closed. If I type in searchInput and click on button in mainWindow, then I want: callWindow.show() callWindow runs this.props.dispatch(push("/calls", {searchInput})) Where I'm Stuck in…
maddie
  • 103
  • 9
2
votes
1 answer

How can I use Window.ShowActivated = false with Maximized window?

I have an application that has a splash screen shown before I create my main window. I want to avoid the main window stealing the focus when it gets created if the user has focused another application while the splash screen was shown. My…
Anthony Brien
  • 6,106
  • 7
  • 43
  • 56
2
votes
2 answers

Maximize Form from Minimized State not working

When I try to Maximize a Form when it is in a Minimized state, (I am using Windows Form) It will not open. Can't figure why. Here is an example of what I'm doing: Button_X_Click(args, Events e) { Form1.ActiveForm.WindowState =…
user2982172
  • 21
  • 1
  • 2
2
votes
1 answer

Save window state when application in tray

I have an app that minimizes to the system tray by clicking on "close" button and I want to save it's state (position, all elements (comboboxes, textboxes) with their values, etc). Now I wrote this code, but it creates a new window from tray…
Roman Nazarkin
  • 2,209
  • 5
  • 23
  • 44
2
votes
0 answers

Setting window state takes away the keyboard focus

We have an application which has multiple windows. One of the window is a notification window which pop-ups and closes by its own based on certain condition. We want the window to come in front of all the windows and should not take away the…
Sumit
  • 21
  • 1
1
vote
1 answer

How to trap the Window state?

I'd a snipped and want to know how to trap it? frame.addWindowStateListener(new WindowStateListener(){ public void windowStateChanged(WindowEvent e) { System.out.println(e.getNewState());//I need to trap this state when it prints 7 …
Mohammad Faisal
  • 5,783
  • 15
  • 70
  • 117
1
vote
1 answer

Visual Studio 2022 When clicking outside application to minimize It doesn't go back to normal

I made this simple little application which goes in the notification area (the little arrow on the taskbar which holds a few applications that run in the background). I have a button made where I can minimize it using: this.WindowState =…
1
vote
1 answer

Setting the WindowState is showing the form

Many of my application forms inherit from a base form which loads the saved window size, position and state recorded during FormClose and applies it during FormShow. The inherited; line in the descendant version of FormShow is in the usual place at…
SiBrit
  • 1,460
  • 12
  • 39
1
vote
1 answer

Blend 4 Change Window State using GoToStateAction behavior from within an ItemTemplate

I've been trying to get this working for a few hours now. I have a Listbox control with items from a database in it. I have 2 window states, "default", and "details". I'd like to use the GoToStateAction behavior in the ItemTemplate so that when any…
Kev
  • 187
  • 1
  • 11
1
vote
0 answers

Issue with windowListenning, keyListenning : Java

I'm currently searching for a way to keep focus on my window. I use a Controller/View design pattern. So this is my window : Preview of our app Using some keys we can do some change on our shapes : first ground, second groud, delete,... JmenuBar…