Solved

What's the difference between Minimize and Hide

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…

820 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