Solved

What's the difference between Minimize and Hide

Posted on 2011-02-22
5
574 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Report events not being triggered 8 113
How to split this in C++ 4 94
Performance of SQL statement 37 97
Base1 Encode/Decode 3 67
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…
This is about my first experience with programming Arduino.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now