maximize-window

JFrame Maximize window

Deadly 提交于 2019-12-17 15:27:29
问题 I'm putting together a quick and dirty animation using swing. I would like the window to be maximized. How can I do that? 回答1: Provided that you are extending JFrame: public void run() { MyFrame myFrame = new MyFrame(); myFrame.setVisible(true); myFrame.setExtendedState(myFrame.getExtendedState() | JFrame.MAXIMIZED_BOTH); } 回答2: Something like this.setExtendedState(this.getExtendedState() | this.MAXIMIZED_BOTH); import java.awt.*; import javax.swing.*; public class Test extends JFrame {

Non Maximized matlab GUI figure

不羁岁月 提交于 2019-12-12 16:25:02
问题 Is there a way to create a GUI which starts as a maximized windows? I've tried to add set(gcf,'Units','normalized','Position',[0,0,1,1]); at the end of my gui's mygui_OpeningFcn() function but the GUI is not maximized properly (see printscreen). Setting the GUI properties at GUIDE to Units-'normalized' and Position-[0,0,1,1] didn't help either. I've also tried to use the Matlab File Exchange maximize function by adding maximize(handle.figure1); at the end of my gui's mygui_OpeningFcn() but it

Maximized owned Form not restoring correctly

不羁的心 提交于 2019-12-11 14:49:08
问题 I have a button on a form which opens a new form as an owned form. (It's very simple, no other logic than below) public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button2_Click(object sender, EventArgs e) { Form form = new Form(); form.Show(this); } } My problem is as follows: If I click the button to get an instance of an owned form and drag it to it's own monitor. Maximize the owned form Minimize the original main form (Form1) Restore the original

Set wpf application screen height on secondary monitor on maximize

℡╲_俬逩灬. 提交于 2019-12-11 01:15:19
问题 I want to set up different screen sizes for Different Monitors. Resolution primary - 1600*900, secondary - 1920*1080 My application is working fine on primary screen, but when i drag the application on secondary screen and maximize ,it maximize only as per primary screen height. I want the application screen size as per current screen. 回答1: I suggest you to use Screen class from System.Windows.Forms to define whether your application is on the second screen. It is necessary to know when a

How to? WPF Window - Maximized, No Resize/Move

血红的双手。 提交于 2019-12-08 15:14:54
问题 I'm trying to make a WPF window that opens already maximized, with no resize/move (in systemmenu, nor in border). It should be maximized all the time, except when the user minimize it. I tried to put WindowState="Maximized" and ResizeMode="CanMinimize", but when window opens, it covers the task bar (i don't want it). I have an hook to WndProc that cancels the SC_MOVE and SC_SIZE. I also can make this control with conditions in WndProc like "if command is restore and is minimized, restore,

Keep window maximized with AutoHotkey?

北城余情 提交于 2019-12-07 03:14:28
I have an AutoHotkey script that launches an application maximized like this: `Run, myprogram.exe,, Max` It then gets rid of the minimize and restore buttons. I can still click on the task bar and drag downwards to restore the window. Is there any good way to keep my window maximized in AHK? How about just locking the window's position? Does the F11 key maximize the app? When in F11 mode most apps completely lose their title bar. If so, run the app then send an F11 key (You may need to wait a bit for the app to be active or something). Failing that, yes you could have an infinite loop running

WPF window is under top/left placed taskbar in Maximized state

China☆狼群 提交于 2019-12-06 17:13:43
I am working on WPF application and I faced problem that when WindowStyle=None and WindowState = WindowState.Maximized the application goes under top or left placed taskbar. When taskbar is placed bottom or right all works normal. I know about Left and Top properties of window, but they are ignored in Maximized state. Also there is Microsoft.Windows.Shell.WindowСhrome that gives ability to drag, double click to maximize and restore, snap and unsnap. (it is need to be added as dll reference) I want to achieve that my application don't hide or go under taskbar and works correctly with behavior

Automatically Maximize Window Using Netbeans

孤街浪徒 提交于 2019-12-06 13:55:20
问题 I have been trying to get the window to automatically maximize using Netbeans. I've probably looked through 4 or 5 pages of Google for an answer. The web pages always provide something like this: public void run() { MyFrame myFrame = new MyFrame(); myFrame.setVisible(true); myFrame.setExtendedState(myFrame.getExtendedState() | JFrame.MAXIMIZED_BOTH); } I am using Netbeans 6.9.1 Does this no longer work? Is there another way to do this? Also, if you find your answer on a web page, please

VB.net Borderless Form Maximize over Taskbar

六月ゝ 毕业季﹏ 提交于 2019-12-05 04:46:39
问题 When I maximize my borderless form, the form covers the entire screen including the taskbar, which I don't want it to do. I'm finding it very difficult to find a solution to my problem on the net, all I've come up with is the below code, which displays the taskbar for a short time, but then disappears and the form still takes up the entire screen. Private Sub TableLayoutPanel1_DoubleClick(sender As Object, e As MouseEventArgs) Handles TableLayoutPanel1.DoubleClick If e.Location.Y < 30 Then Me

Maximize C# Application from System Tray using Keyboard Shortcut

喜欢而已 提交于 2019-12-05 02:25:56
问题 Can I know if there is anyway that I can maximise my windows form application from the system tray using say a Keyboard Shortcut rather than clicking on it? I am currently minimizing using this piece of code //Minimize to Tray with over-ride for short cut private void MinimiseToTray(bool shortCutPressed) { notifyIcon.BalloonTipTitle = "Minimize to Tray App"; notifyIcon.BalloonTipText = "You have successfully minimized your app."; if (FormWindowState.Minimized == this.WindowState ||