Solved

What's the difference between Minimize and Hide

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
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 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 …

743 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

11 Experts available now in Live!

Get 1:1 Help Now