Questions tagged [minimize]

To minimize is to replace one object with another object that can restore the original when selected.

In a graphical interface, to minimize is to replace one object with another, less obtrusive object that can restore the original when selected. The original object is often a window; the minimized form is often an iconic button located in a system dock, tray or task bar.

849 questions
5
votes
3 answers

Combine, minimize and gzip for CSS and JavaScript files for ASP.NET MVC

Good day! I'm looking for solution to combine, minimize and gzip CSS and JavaScript files. It seems they come in two forms: In form of ASP.NET handler\module with processing files on the fly (with caching results) In form of VS build tasks (to…
artvolk
  • 9,448
  • 11
  • 56
  • 85
5
votes
3 answers

How can I override the close button on a third-party application so that it minimizes instead?

I would like to override the close button on a third-party application so that it causes the application to be minimized instead. I do not have source code for the target application. Can I write such thing in C#? Or do I need to use C++? How do I…
Tamara Wijsman
  • 12,198
  • 8
  • 53
  • 82
5
votes
4 answers

Cancel A WinForm Minimize?

I have a winform with the minimizeMaximizeClose buttons disabled, but still if someone presses it in the task bar, it will minimize. I want to prevent this from happening. How can I accomplish this?
sooprise
  • 22,657
  • 67
  • 188
  • 276
5
votes
3 answers

Painted content invisible while resizing in Java

Please note I haven't tested this on a Windows-machine only on a Mac-machine. I'm not so sure whether this also occurs on a Windows-machine... When I resize my Java-application the content is invisible. I already found a way to fix it after resizing…
cutsoy
  • 10,127
  • 4
  • 40
  • 57
5
votes
3 answers

C# close to tray (like msn messenger)

I have a c# .net app. So I created a notifyIcon that sits in the tray. What I want to do is when the user hits the "x" button on the form, I want it to close to the tray. They should only be able to exit program by using the context menu in the tray…
Andy Hin
  • 30,345
  • 42
  • 99
  • 142
5
votes
1 answer

Options of the function scipy.optimize.minimize

I am trying to minimize a very long function (it is the sum of 500000 parts of sub-functions) in order to fit some parameters to a probabilistic model. I use the scipy.optimize.minimize function. I tried both Powell and Nelder-Mead algorithms, and…
sweeeeeet
  • 1,769
  • 4
  • 26
  • 50
5
votes
2 answers

Enable Maximize, Minimize and Restore Window in WPF (Manual Resize is disable)

I need to enable the following on my application (C# WPF application): Have normal size of 1024*768 The user can maximize the application The user can minimize the application The user can restore the application (1024*768) The user cannot manually…
Nir
  • 371
  • 2
  • 4
  • 12
5
votes
1 answer

scipy.optimize.minimize : ValueError: all the input arrays must have same number of dimensions

following is my code. I get the ValueError mentioned in the headline (and appended in the end), and I can't imagine why. My function is R^2 -> R, and I follow closely (in format, not actual values) the steps in…
FooBar
  • 15,724
  • 19
  • 82
  • 171
5
votes
1 answer

Excel Window & UserForm Minimize and Maximize Functions

I currently have a userform open on top of an excel instance and it is set so you can't interact with anything except for the userform. Since there is no way to minimize this program, I created a 'Minimize' button on the userform that, when clicked,…
Glynbeard
  • 1,389
  • 2
  • 19
  • 31
5
votes
0 answers

Scipy fmin with integer solution

I need to minimize a function that only allows integer input. Can I solve it with scipy.optimize.fmin? Otherwise, is there any alternative?
Jorge Barata
  • 2,227
  • 1
  • 20
  • 26
5
votes
4 answers

Minimize a external application with Delphi

Is there a way to Minimize an external application that I don't have control over from with-in my Delphi application? for example notepad.exe, except the application I want to minimize will only ever have one instance.
Re0sless
  • 10,678
  • 6
  • 51
  • 66
4
votes
3 answers

Minimize the whole application when a child modal form is minimized

In another question near this, i get the answer to get modal forms to keep inside a workarea inside the mainform. The way i can accomplish that (thanks to David again) is catching WMSizing, WMMoving, WMGetMaxMinInfo, and for my porpuose WMShowwindow…
Speaker
  • 189
  • 2
  • 10
4
votes
1 answer

How to make a window not associated with the application minimize or maximize its window state in vb?

If you have ever noticed in the Task Manager, when you right-click on the running task, you have many options which include 'Minimize' and 'Maximize'. Is there anyway to do achieve this in vb?
user959631
  • 1,004
  • 2
  • 14
  • 34
4
votes
1 answer

Minimum cost of swapping chars in string so no 3 same are consecutive

I have a string containing only two char values: 'a' or 'b'. A char can be swapped in for the other char value. Each char in the string has an associated cost with swapping it. I need to find the minimum cost of swaps such that there are no 3…
Tom Finet
  • 487
  • 1
  • 7
  • 21
4
votes
1 answer

() takes 1 positional argument but 2 were given

I am trying to implement the same Sage code here: find vector center in python, as follows: import numpy as np from scipy.optimize import minimize def norm(x): return x/np.linalg.norm(x) vectors =…
Sarah N
  • 43
  • 1
  • 4