Solved

What's the difference between Minimize and Hide

Posted on 2011-02-22
5
576 Views
Last Modified: 2012-05-11
What is the difference between Application.Minimize and Form.Hide?

I'm trying to get my program to disappear into the system tray whenever someone clicks the system MINIMIZE and CLOSE buttons. (I've accomplished this; no problems.) But I'm using BOTH the Minimize and Hide commands.

Ideally, which should I be using? Does minimizing the application use less resources?

I have a timer on my form which needs to keep going in the background. Will Minimize prevent it from activating? What about Hide?

Thanks for the info.

- Mike Z

PS: Again, I'm not looking for code here, just an explanation whether or not I should be using Minimize or hide. Thanks.

- Z


0
Comment
Question by:MZmuda1
5 Comments
 
LVL 37

Accepted Solution

by:
Geert Gruwez earned 50 total points
ID: 34950163
Minimize leaves a button on the taskbar and hides the form itself

Hide also hides the button on the taskbar

no difference in performance, but hide is more user friendly (makes more room for buttons on the taskbar)

 
0
 
LVL 8

Assisted Solution

by:jimsweb
jimsweb earned 40 total points
ID: 34950186
fine. Minimizing an application will keep the application in taskbar whereas, hiding an application wont keep it in taskbar. As per you, I understand that you have succeeded in keeping your application in system tray. So i think there is no issue in doing that way. It is true that minimizing the application use less resourse.
0
 
LVL 17

Assisted Solution

by:Sikhumbuzo Ntsada
Sikhumbuzo Ntsada earned 35 total points
ID: 34950214
If you minimize the form will be active but will need you to refresh if there is a timer like you said, whereas if you hide it it keeps running no need for action from you.
0
 

Author Closing Comment

by:MZmuda1
ID: 34950342
Thanks, Guys. A little conflicting info (uses more resources; doesn't use more resources, etc...) but overall good. Updated my code, and everything works great.

Thanks!
0
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 34950351
you can use 2 menu options:
Minimize to tray
and
Minimize

0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
split53 challenge 7 97
Modify a small python script 19 109
C# application error "Parameter Is Not Valid". 3 96
firemonkey keyboard covers the controls 1 26
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question