473,388 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Minimizing a Application in C#

Hello All,
Iam a newbie in .NET and i need u r help.
My Question is "How to Minimize an Application in C#"

I tried using the below code

this.WindowState=System.Windows.Forms.FormWindowSt ate.Minimized;

but it minimizes only the current Form,but i want to minimize the
Entire Application(i.e minimize all the forms Opened).

Plz Help.

Thank u all in Advance.
Ansu

Jan 8 '07 #1
2 2016
Hi,

Ansu wrote:
Hello All,
Iam a newbie in .NET and i need u r help.
My Question is "How to Minimize an Application in C#"

I tried using the below code

this.WindowState=System.Windows.Forms.FormWindowSt ate.Minimized;

but it minimizes only the current Form,but i want to minimize the
Entire Application(i.e minimize all the forms Opened).

Plz Help.

Thank u all in Advance.
Ansu
You should keep track of opened forms in your main form anyway, so when
you minimize the current form, simply notify the main form, which in
turn can notify all open forms.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Jan 8 '07 #2
Agree entirely that it is good practice to keep track (in your own
code) of which forms are open.

If it is already way too late for this, you *might* be able to use
Application.OpenForms; the problem here is that you may need to
distinguish between parent, child, owned etc, and forms with active
modal sub-forms, MDI etc. But my recommendation is as per Laurent's
post.

Marc
Jan 8 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Peter | last post by:
I have a dll written in VB6 that exposes a form. The dll is called from VBA in an Access 2000 application. I need to get the form to minimize when the user minimizes the Access application...
3
by: Chris | last post by:
Modal forms are great for locking the user out of non focused forms allowing tight control over program flow, but they have one side effect which user find very irritating i.e. Access cannot be...
1
by: Smile | last post by:
hi I want a program which when run, hides all the rest of the running applications on the taskbar. or i might want to check something like - If some application is mazimized, then minimize it or...
1
by: Jawahar | last post by:
All, I have an ASP.net application from which I allow users to run reports that are crystal reports and exported to PDF format, in addition there are other static documents that users can view in...
8
by: Bob Dufour | last post by:
We got a windows form application that we wrote in VB.Net. Essentially its a manager for a list of persons and their contacts and some other info about the persons. No rocket science but lots of...
7
by: Lee | last post by:
Hi, How do I detect when a form is minimizing? specifically when a user clicks the show desktop button on the taskbar, rather than the minimize button on a form. thanks in advance
1
by: Zectron | last post by:
I have made my custom application from which i can access all other installed application using Shell function. I need to send this application to system tray upon minimizing. How to do it?? Please...
4
by: MLH | last post by:
Would like to shrink the entire A97 mde Application to the taskbar at the bottom of my screen from within code. I thought I remembered seeing some little one-liner that would do it - something...
7
by: Abelard | last post by:
How do I programmatically minimize the console window in a VB .NET console application?
3
by: qazplm114477 | last post by:
Hi, I'm having a tiny problem. I have just started playing around with visual basic a week ago so im fairly new at this. I created a method that saves changes when you click a button, once the button...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.